most likely fixed the ai; it atleast isnt making dumb moves anymore

This commit is contained in:
michiel
2025-09-18 10:15:51 +02:00
parent 82fd67d351
commit 593ff2696c
3 changed files with 31 additions and 19 deletions

View File

@@ -59,7 +59,7 @@ public class MinMaxTicTacToe {
else {
boolean empty = false;
for (char cell : game.grid) { // else, look at draw conditions. we check per cell if it's empty or not
if (cell == ' ') {
if (cell == GameBase.EMPTY) {
empty = true; // if a thing is empty, set to true
break; // break the loop
}