Implement redundant mailbox representation
This commit is contained in:
@@ -110,7 +110,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)?;
|
||||
let mv = Move::parse_from_str(&game, mv_str)?;
|
||||
game.make_move(&mv);
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ mod tests {
|
||||
fn test_uci_go() -> Result<(), String> {
|
||||
init_attacks();
|
||||
let mut game = from_fen(FEN_MATE_IN_1)?;
|
||||
let command_go = "go depth 4";
|
||||
let command_go = "go depth 2";
|
||||
let mut parts = command_go.split_whitespace();
|
||||
let response = uci_go(&mut parts, &mut game)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user