properly handle skipping a move

This commit is contained in:
2025-02-27 09:41:56 -05:00
parent 8719d31c38
commit 2c31589e51
2 changed files with 37 additions and 37 deletions

View File

@@ -32,11 +32,9 @@ impl Agent for ComplexAgent {
println!("# of moves stored: {}", self.future_moves.arena_len());
self.future_moves.best_move().inspect(|&(i, j)| {
if !self.future_moves.update_root_coord(i, j) {
panic!("update_root_coord failed");
}
})
self.future_moves
.best_move()
.expect("FutureMoves has no move?")
}
fn name(&self) -> &'static str {