Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed jumping bug for minimax
  • Loading branch information
john committed May 3, 2016
1 parent 102b269 commit 92f3854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/player/ComputerPlayer.java
Expand Up @@ -20,8 +20,10 @@ public class ComputerPlayer extends Player {
Move move = getMinimaxMove(GameConstants.MAX_SEARCH_DEPTH, inJumpSequence);
if (move == null) {
inJumpSequence = false;
}else if (board.movePromotesPiece(move)) {
} else if (board.movePromotesPiece(move)) {
inJumpSequence = false;
} else if (move.isJump()) {
inJumpSequence = true;
}
return move;
}
Expand Down

0 comments on commit 92f3854

Please sign in to comment.