moved score out of game

This commit is contained in:
ramollia
2025-10-28 11:13:56 +01:00
parent 0638a38fc1
commit 5b20909f80

View File

@@ -17,9 +17,9 @@ public final class TicTacToeAI extends AI<TicTacToe> {
if (legalMoves.length == 9) { if (legalMoves.length == 9) {
return switch ((int)(Math.random() * 4)) { return switch ((int)(Math.random() * 4)) {
case 1 -> legalMoves[2]; case 0 -> legalMoves[2];
case 2 -> legalMoves[6]; case 1 -> legalMoves[6];
case 3 -> legalMoves[8]; case 2 -> legalMoves[8];
default -> legalMoves[0]; default -> legalMoves[0];
}; };
} }