diff options
Diffstat (limited to 'tic_tac_toe/src/main.rs')
-rw-r--r-- | tic_tac_toe/src/main.rs | 4 |
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) { |