Remove duplications and rewrite fn make_move
This commit is contained in:
@@ -101,7 +101,7 @@ pub fn uci_position(mut position: 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, game.board.state.next_turn());
|
||||
}
|
||||
|
||||
Ok(game)
|
||||
|
||||
Reference in New Issue
Block a user