Commit 4df4606e authored by Stefano Cobelli's avatar Stefano Cobelli

Controller fixed to train AI

parent 7e1abaaa
......@@ -112,7 +112,9 @@ public class TTTController implements ActionListener {
while (aiGames.isPlayable()) {
((AutoPlayable) aiGames.getCurPlayer()).decideMove();
aiGames.switchTurn();
System.out.println(aiGames.getBoard());
}
if (aiGames.isWinFor(randGuy)) {
aiGuy.loss();
}
aiGames.newGame();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment