Skip to content

Commit

Permalink
added very useful printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed Apr 30, 2016
1 parent 16377f7 commit 51afcd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/controller/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ public Move getMinimaxMove(int depth, boolean inJumpSequence) {
bestMove = moveFrontier.get(i);
maxScore = moveScores.get(i);
}

System.out.println(moveFrontier.get(i) + " --> " + moveScores.get(i));
}

System.out.println("Choosing: " + bestMove);

return bestMove;
}
Expand Down Expand Up @@ -198,11 +202,11 @@ public int getMinimaxScore(Color color, Board b, int depth, boolean inJumpSequen

if (color == GameConstants.THUNK_COLOR) {
// Maximize
return Collections.min(moveScores);
return Collections.max(moveScores);
}
else {
// Minimize
return Collections.max(moveScores);
return Collections.min(moveScores);
}

}
Expand Down

0 comments on commit 51afcd9

Please sign in to comment.