M42 - A C++ library for Bitboard attack mask generation

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
vittyvirus
Posts: 646
Joined: Wed Jun 18, 2014 12:30 pm
Full name: Fahad Syed

M42 - A C++ library for Bitboard attack mask generation

Post by vittyvirus » Sat Apr 30, 2016 7:01 pm

Hi folks!

M42 is a C++ Bitboard attack mask generation library. Features:
=> Fancy Magic Bitboard based attack mask generation for sliders
=> Functions for attack mask generation of all pieces
=> Functions that can handle bitboards of multiple pieces (non-slider only)
=> Clean and concise code (At least I think so)
=> Portable code, doesn't depend on hardware intrinsics and particular compilers

Copyright info: M42 has absolutely NO copyrights. Read the documentation for more information.

Get it here: https://sites.google.com/site/sydfhd/projects/m42/

User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 8:48 am

Re: M42 - A C++ library for Bitboard attack mask generation

Post by velmarin » Sat Apr 30, 2016 9:09 pm

Hi, Syed.
Nice !!. And fun.

Supported compilers, Intel and LLVM in Visual Studio.

Code: Select all

SUPPORTED COMPILERS
M42 is intended to be used under a variety of C++ compilers on a variety of system. M42 has been tested on g++ and Visual C++ compilers. M42 should compile fine under pretty much every C++ compiler, and if it doesn’t, you can of course email your issues (see the cover page).

User avatar
vittyvirus
Posts: 646
Joined: Wed Jun 18, 2014 12:30 pm
Full name: Fahad Syed

Re: M42 - A C++ library for Bitboard attack mask generation

Post by vittyvirus » Sat Apr 30, 2016 9:17 pm

velmarin wrote:Hi, Syed.
Nice !!. And fun.

Supported compilers, Intel and LLVM in Visual Studio.

Code: Select all

SUPPORTED COMPILERS
M42 is intended to be used under a variety of C++ compilers on a variety of system. M42 has been tested on g++ and Visual C++ compilers. M42 should compile fine under pretty much every C++ compiler, and if it doesn’t, you can of course email your issues (see the cover page).
Thank you for your kind words, and for testing it under Intel and LLVM compilers.
I'm going to update the documentation soon.

Post Reply