Move make/unmake and History on Game

This commit is contained in:
stefiosif
2024-09-15 18:38:32 +03:00
parent 3383435af7
commit f128b35252
8 changed files with 172 additions and 159 deletions

View File

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