Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert heuristics
  • Loading branch information
Aaron committed Apr 30, 2016
1 parent a2189bb commit 9457aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/Board.java
Expand Up @@ -389,8 +389,8 @@ public class Board {

public int getHeuristic(Color color) {
/* Kings are weighted more, so we count for them twice */
int blackHeuristic = blackPieces + blackKings * 2;
int whiteHeuristic = whitePieces + whiteKings * 2;
int blackHeuristic = blackPieces + blackKings;
int whiteHeuristic = whitePieces + whiteKings;
return - (color == Color.BLACK ?
(blackHeuristic - whiteHeuristic) :
(whiteHeuristic - blackHeuristic));
Expand Down

0 comments on commit 9457aa2

Please sign in to comment.