[board] Implement position::builders::MoveBuilder

This builder takes a Position and a Move, validates the move, and makes the move
in that position. Its build() method returns a new Position with the move made.
This commit is contained in:
Eryn Wells 2024-01-21 09:23:39 -08:00
parent 7b8ce3b31d
commit 21b5266789
7 changed files with 323 additions and 4 deletions

View file

@ -61,7 +61,7 @@ impl BitBoard {
*self |= sq_bb
}
fn clear_square(&mut self, sq: Square) {
pub fn clear_square(&mut self, sq: Square) {
let sq_bb: BitBoard = sq.into();
*self &= !sq_bb
}