[board] Update a bunch of methods to take &Piece instead of plain Piece
This commit is contained in:
parent
f7951d6110
commit
1a907844d6
8 changed files with 20 additions and 16 deletions
|
@ -53,7 +53,7 @@ impl<'pos> MoveGeneratorInternal for ClassicalMoveGenerator<'pos> {
|
|||
let quiet_moves_bb = all_moves & (empty_squares | !friendly_pieces);
|
||||
let capture_moves_bb = all_moves & opposing_pieces;
|
||||
|
||||
let map_to_move = |sq| MoveBuilder::new(piece, square, sq).build();
|
||||
let map_to_move = |sq| MoveBuilder::new(*piece, square, sq).build();
|
||||
let quiet_moves = quiet_moves_bb.occupied_squares().map(map_to_move);
|
||||
let capture_moves = capture_moves_bb.occupied_squares().map(map_to_move);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue