Refactor make_move, internal functions, move parsing and add more tests

This commit is contained in:
stefiosif
2024-09-14 20:55:00 +03:00
parent b26357a205
commit 49b413d24f
5 changed files with 490 additions and 301 deletions

View File

@@ -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) {