M42 - C++ Library for Bitboard Attack Mask Generation

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, 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 - C++ Library for Bitboard Attack Mask Generation

Post by vittyvirus » Mon May 04, 2020 1:16 pm

GitHub

It's something I wrote years ago and haven't touched since.

Sven
Posts: 4004
Joined: Thu May 15, 2008 7:57 pm
Location: Berlin, Germany
Full name: Sven Schüle
Contact:

Re: M42 - C++ Library for Bitboard Attack Mask Generation

Post by Sven » Tue May 05, 2020 7:28 pm

Thanks for making this public!
For sliders the readme says:
These functions take the square of the piece as their first argument (a1 = 0, a2 = 1, …, h8 = 63)
but I guess it should be:
a1 = 0, b1 = 1, ..., h8 = 63
according to the source code. Right?
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)

Post Reply