mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
most likely fixed the ai; it atleast isnt making dumb moves anymore
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user