summaryrefslogtreecommitdiff
path: root/tic_tac_toe/src/main.rs
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2025-05-07 23:26:47 -0700
committerKai Stevenson <kai@kaistevenson.com>2025-05-07 23:26:47 -0700
commitb779e3adc0491d25d93dfe5264b7134148a8a888 (patch)
tree0adc29f94cecd77697ee037d4d914453f6220196 /tic_tac_toe/src/main.rs
parentaf2bc841119a6751c240dec95dd5511d4ee31d36 (diff)
improve debug messages
Diffstat (limited to 'tic_tac_toe/src/main.rs')
-rw-r--r--tic_tac_toe/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tic_tac_toe/src/main.rs b/tic_tac_toe/src/main.rs
index 19285a2..d1762ba 100644
--- a/tic_tac_toe/src/main.rs
+++ b/tic_tac_toe/src/main.rs
@@ -136,8 +136,10 @@ fn main() {
}
}
+ clear_scrn();
+
//get AI move
- let ai_move = get_best_move(&board, Tile::PlayerTwo, true, 0);
+ let ai_move = get_best_move(&board, Tile::PlayerTwo, true);
board.set_at_coord(ai_move.coord, Tile::PlayerTwo);
match check_state(&board) {