diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 3deac64..7c00169 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,6 +7,7 @@
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 121f8d7..2d7ff3e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -5,7 +5,7 @@
-
+
@@ -41,6 +41,12 @@
"accountId": "7694f583-f911-4763-8185-8ea3ed608804"
}
}
+
+
+
+
+
+
{
"customColor": "",
"associatedIndex": 1
@@ -50,27 +56,27 @@
- {
+ "keyToString": {
+ "Application.Main.executor": "Run",
+ "JUnit.MinMaxTicTacToeTest.executor": "Run",
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "git-widget-placeholder": "Michiel",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "project.structure.last.edited": "Modules",
+ "project.structure.proportion": "0.0",
+ "project.structure.side.proportion": "0.0",
+ "settings.editor.selected.configurable": "reference.settings.project.statistic.project.settings",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
diff --git a/src/main/java/org/toop/game/tictactoe/MinMaxTicTacToe.java b/src/main/java/org/toop/game/tictactoe/MinMaxTicTacToe.java
index df8cdcd..03ae6f0 100644
--- a/src/main/java/org/toop/game/tictactoe/MinMaxTicTacToe.java
+++ b/src/main/java/org/toop/game/tictactoe/MinMaxTicTacToe.java
@@ -29,7 +29,7 @@ public class MinMaxTicTacToe {
return i; // just return right away if you can win on the next move
}
else {
- thisMoveValue = doMinimax(copyGame, 8, false); // else look at other moves
+ thisMoveValue = doMinimax(copyGame, game.movesLeft, false); // else look at other moves
}
if (thisMoveValue > bestVal) { // if better move than the current best, change the move
bestVal = thisMoveValue;