[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:
parent
ca9ff94d2a
commit
2174bcf009
7 changed files with 79 additions and 73 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue