Refactor make_move, internal functions, move parsing and add more tests
This commit is contained in:
@@ -60,7 +60,7 @@ impl MoveParameters {
|
||||
}
|
||||
|
||||
fn add_captured_piece(&mut self, board: &Board, dst: usize, color: Color) {
|
||||
self.captured_piece = board.piece_type_at(dst, color);
|
||||
self.captured_piece = board.piece_type_at_color(dst, color);
|
||||
}
|
||||
|
||||
fn add_promoted_piece(&mut self, promote: Promote) {
|
||||
|
||||
Reference in New Issue
Block a user