[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:
parent
9c4360c886
commit
b93f8684fa
9 changed files with 111 additions and 46 deletions
|
|
@ -136,7 +136,7 @@ impl Position {
|
|||
|
||||
pub fn moves(&self) -> &Moves {
|
||||
self.moves
|
||||
.get_or_init(|| Moves::new(self, self.color_to_move))
|
||||
.get_or_init(|| Moves::new(self, self.color_to_move, BitBoard::FULL, BitBoard::FULL))
|
||||
}
|
||||
|
||||
/// Return a BitBoard representing the set of squares containing a piece.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue