diff options
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"; |
