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/uci.cpp | |
| parent | 40e242dc5450e1661c817b0bad8f9748388c278a (diff) | |
renaming none to none piece
Diffstat (limited to 'src/uci.cpp')
| -rw-r--r-- | src/uci.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uci.cpp b/src/uci.cpp index 1f634fe..4e32d6f 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -57,7 +57,7 @@ static Game initBoard(string startingFEN) { Piece EmptyPiece = { false, - NONE, + NONEPIECE, false, }; for (int i = 0; i < 64; i++) { @@ -95,7 +95,7 @@ void Uci() { cout << "bestmove "; cout << (char)(best.From.file + 'a') << 8 - best.From.rank << (char)(best.To.file + 'a') << 8 - best.To.rank; - if (best.promotion != NONE) { + if (best.promotion != NONEPIECE) { switch (best.promotion) { case QUEEN: cout << "q"; |
