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

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

Moderators: hgm, Rebel, chrisw

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

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

Post by vittyvirus »

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 9:48 am

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

Post by velmarin »

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 2:30 pm
Full name: Fahad Syed

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

Post by vittyvirus »

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.