cache winner in Move

This commit is contained in:
2025-02-08 23:13:12 -05:00
parent 2302f3be35
commit f5d44ca9f5
4 changed files with 22 additions and 16 deletions

View File

@@ -17,6 +17,7 @@ impl Agent for ManualAgent {
fn next_move(&mut self, _: &Board) -> Option<(usize, usize)> {
let stdin = io::stdin();
let mut input = String::new();
println!("Your turn!");
loop {
input.clear();
stdin.lock().read_line(&mut input).ok()?;