[board] Create a bitboard! macro and BitBoardBuilder

The Builder enables cleanly building a BitBoard out of squares.
The macro lets you create a BitBoard from a simple list of coordinates:

bitboard!(A1, B2, C3, D4, …)
This commit is contained in:
Eryn Wells 2024-01-15 17:17:34 -08:00
parent 9ef53b76f5
commit a6b98abb95
3 changed files with 32 additions and 1 deletions

View file

@ -1,5 +1,6 @@
// Eryn Wells <eryn@erynwells.me>
#[macro_use]
mod bitboard;
mod display;
mod moves;