Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed Apr 30, 2016
2 parents 51afcd9 + ed5e750 commit 8daef5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 = 5;
public static final int MAX_SEARCH_DEPTH = 7;
}
4 changes: 2 additions & 2 deletions src/model/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ public int getHeuristic(Color color) {
/* Kings are weighted more, so we count for them twice */
int blackHeuristic = blackPieces + blackKings;
int whiteHeuristic = whitePieces + whiteKings;
return color == Color.BLACK ?
return - (color == Color.BLACK ?
(blackHeuristic - whiteHeuristic) :
(whiteHeuristic - blackHeuristic);
(whiteHeuristic - blackHeuristic));
}

public Piece getPiece(Location location) {
Expand Down

0 comments on commit 8daef5b

Please sign in to comment.