[board] Update all the move generator submodules to use MoveBuilder instead of Move

Along the way update "manual" piece creation to use the macros instead.
This commit is contained in:
Eryn Wells 2024-01-17 08:43:48 -08:00
parent ca9ff94d2a
commit 2174bcf009
7 changed files with 79 additions and 73 deletions

View file

@ -155,8 +155,8 @@ impl Position {
Ok(())
}
pub fn move_generator(&self, color: Color) -> Moves {
Moves::new(self, color)
pub fn moves(&self) -> Moves {
Moves::new(self, self.color_to_move)
}
/// Return a BitBoard representing the set of squares containing a piece.