Add utility functions for readability and refactor make_move

This commit is contained in:
stefiosif
2024-08-28 21:07:22 +03:00
parent 6c8f445fa9
commit 21076da68c
10 changed files with 91 additions and 61 deletions

View File

@@ -101,7 +101,7 @@ pub fn uci_position(position: &mut SplitWhitespace) -> Result<Game, String> {
for mv_str in position {
let mv = Move::parse_from_str(mv_str)?;
game.board.make_move(&mv, game.board.state.next_turn());
game.board.make_move(&mv);
}
Ok(game)