From ccb929172587fbfb8fb000d7992bdbbdac6f53ae Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 28 Jul 2026 19:04:46 +0200 Subject: renaming none to none piece --- src/bot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bot.cpp') 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; -- cgit v1.2.3