[board] Rename BitBoard::place_piece_at and BitBoard::remove_piece_at
→ set_square → clear_square
This commit is contained in:
parent
3ecc263701
commit
9ef53b76f5
2 changed files with 10 additions and 8 deletions
|
@ -141,10 +141,10 @@ impl Position {
|
|||
return Err(PiecePlacementError::ExistsOnSquare);
|
||||
}
|
||||
|
||||
type_bb.place_piece_at(square);
|
||||
type_bb.set_square(square);
|
||||
|
||||
let color_bb = &mut self.bitboard_for_color_mut(piece.color());
|
||||
color_bb.place_piece_at(square);
|
||||
color_bb.set_square(square);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue