Skip to content

Commit

Permalink
Fixed check for jump sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Apr 30, 2016
1 parent 31ac736 commit 2524190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/controller/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public Move getMinimaxMove(int depth, boolean inJumpSequence) {

Color nextColor;
/* Determine the next color to move */
if (GameConstants.THUNK_COLOR == Color.BLACK && !inJumpSequence) {
if (inJumpSequence) {
nextColor = GameConstants.THUNK_COLOR;
} else if (GameConstants.THUNK_COLOR == Color.BLACK) {
nextColor = Color.WHITE;
} else {
nextColor = Color.BLACK;
Expand Down
2 changes: 1 addition & 1 deletion src/controller/GameConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public class GameConstants {
public static final Color THUNK_COLOR = Color.WHITE;
public static final Color USER_COLOR = Color.BLACK;
public static final int MAX_PASSIVE_MOVES = 50;
public static final int MAX_SEARCH_DEPTH = 4;
public static final int MAX_SEARCH_DEPTH = 12;
}

0 comments on commit 2524190

Please sign in to comment.