summaryrefslogtreecommitdiff
path: root/minimax.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-03-12 00:20:50 +0100
committertomsmeding <tom.smeding@gmail.com>2018-03-12 00:20:50 +0100
commitb26b8840e2cebec9ea8294d24ceb6663942005d4 (patch)
tree295d74c04bc9b6496e5a06a76234d87e876b3fe9 /minimax.cpp
Initial
Diffstat (limited to 'minimax.cpp')
-rw-r--r--minimax.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/minimax.cpp b/minimax.cpp
new file mode 100644
index 0000000..3c0793d
--- /dev/null
+++ b/minimax.cpp
@@ -0,0 +1,9 @@
+#include "minimax.h"
+
+
+int evaluate_pieceScore(const Board &board) {
+ int score = board.pieceScore[WHITE] - board.pieceScore[BLACK];
+ // cerr << board << endl;
+ // cerr << " -> score = " << score << endl;
+ return score;
+}