aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.cpp')
-rw-r--r--src/bot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bot.cpp b/src/bot.cpp
index 02b9452..1a156a2 100644
--- a/src/bot.cpp
+++ b/src/bot.cpp
@@ -68,7 +68,7 @@ int ScoreMove(const Game *board, const Move &move) {
Piece captured = board->pieces[PositionToIndex(move.To)];
// Captures (MVV-LVA)
- if (captured.type != NONE) {
+ if (captured.type != NONEPIECE) {
static const int pieceValue[] = {
0, // NONE
20000, // KING (should never happen)
@@ -85,7 +85,7 @@ int ScoreMove(const Game *board, const Move &move) {
}
// Promotions
- if (move.promotion != NONE) {
+ if (move.promotion != NONEPIECE) {
score += 8000;
}
@@ -193,7 +193,7 @@ float EvaluateBoardForWhite(Game *b, int depth) {
for (int i = 0; i < 64; i++) {
Piece piece = b->pieces[i];
- if (piece.type == NONE)
+ if (piece.type == NONEPIECE)
continue;
int value = 0;