mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
nog een kleine fix waarbij die depth van 8 gebruikte in plaats van game.movesleft
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user