Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed base case again
  • Loading branch information
john committed Apr 30, 2016
1 parent ff53a3f commit d30ebd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/Game.java
Expand Up @@ -165,7 +165,7 @@ public class Game {
Color otherColor = (color == Color.BLACK ? Color.WHITE : Color.BLACK);

if (depth == 0) {
return b.getHeuristic(color);
return b.getHeuristic(otherColor);
}

if (inJumpSequence) {
Expand Down

0 comments on commit d30ebd6

Please sign in to comment.