From 25241906db0e9343dc0dac4a9a2eefeef1dfaad5 Mon Sep 17 00:00:00 2001 From: jwb11006 Date: Sat, 30 Apr 2016 17:22:20 -0400 Subject: [PATCH] Fixed check for jump sequence --- src/controller/Game.java | 4 +++- src/controller/GameConstants.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controller/Game.java b/src/controller/Game.java index b8bb51e..d3413f4 100755 --- a/src/controller/Game.java +++ b/src/controller/Game.java @@ -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; diff --git a/src/controller/GameConstants.java b/src/controller/GameConstants.java index d4f3895..d308d43 100644 --- a/src/controller/GameConstants.java +++ b/src/controller/GameConstants.java @@ -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; }