properly handle skipping a move
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user