diff options
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Year 4/Artificial Intelligence/hw04/src/main.rs | 2 |
diff --git a/Year 4/Artificial Intelligence/hw04/src/main.rs b/Year 4/Artificial Intelligence/hw04/src/main.rs index 933083b..a6704a0 100644 --- a/Year 4/Artificial Intelligence/hw04/src/main.rs +++ b/Year 4/Artificial Intelligence/hw04/src/main.rs @@ -140,7 +140,7 @@ fn player_move(board: &mut [[Tile; 3]; 3]) { } fn computer_move(board: &mut [[Tile; 3]; 3], turn: i32) { - let (_, x, y) = minimax(board, 9 - turn, i32::MIN, i32::MAX, true); + let (_, x, y) = minimax(board, 8 - turn, i32::MIN, i32::MAX, true); println!("Computer move: {x} {y}"); board[x][y] = Tile::O; } |
