diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-28 19:04:46 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-28 19:04:46 +0200 |
| commit | ccb929172587fbfb8fb000d7992bdbbdac6f53ae (patch) | |
| tree | 9a273513c50284a20266361b3f5304c539975fe2 /src/bot.cpp | |
| parent | 40e242dc5450e1661c817b0bad8f9748388c278a (diff) | |
renaming none to none piece
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 6 |
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; |
