From 9457aa218e30ecff1b1056bdfcb08bcce8d14618 Mon Sep 17 00:00:00 2001 From: aah13002 Date: Sat, 30 Apr 2016 17:51:13 -0400 Subject: [PATCH] Revert heuristics --- src/model/Board.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/Board.java b/src/model/Board.java index 68aeaa6..ba0ea40 100755 --- a/src/model/Board.java +++ b/src/model/Board.java @@ -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));