[position] Plumb capture mask and push mask arguments through all move generators

These masks will help when generating moves that address checks.
Create BitBoard::EMPTY and BitBoard::FULL.
This commit is contained in:
Eryn Wells 2024-01-29 20:11:34 -08:00
parent 9c4360c886
commit b93f8684fa
9 changed files with 111 additions and 46 deletions

View file

@ -18,6 +18,9 @@ macro_rules! moves_getter {
}
impl BitBoard {
pub const EMPTY: BitBoard = BitBoard(0);
pub const FULL: BitBoard = BitBoard(0xFFFFFFFFFFFFFFFF);
pub const fn empty() -> BitBoard {
BitBoard(0)
}