From 69a57179d1790aff33cd85c0b53cd57db0460a5b Mon Sep 17 00:00:00 2001 From: David Jardim Date: Tue, 18 Apr 2017 13:24:34 -0400 Subject: [PATCH] added evalScore variable --- include/BitBoard.h | 1 + src/heuristics.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/BitBoard.h b/include/BitBoard.h index fdb8a26..2f55290 100644 --- a/include/BitBoard.h +++ b/include/BitBoard.h @@ -54,6 +54,7 @@ class BitBoard const int count(uint32_t i) const; // Heuristic functions + int evalScore; void evalHueristics(); int h1() const; diff --git a/src/heuristics.cpp b/src/heuristics.cpp index 80dbf3d..95f813c 100644 --- a/src/heuristics.cpp +++ b/src/heuristics.cpp @@ -22,7 +22,7 @@ uint32_t const BitBoard::playerPieces() const { } void BitBoard::evalHueristics(){ - evalScore = h1() + h2() + h3() + h4() + h5() + h6 + h7() + h8() + h9() + h10(); + evalScore = h1() + h2() + h3() + h4() + h5() + h6() + h7() + h8() + h9() + h10(); } // Number of pawns