summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-26 22:08:05 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-26 22:08:05 +0100
commitbdb2963bc38893fd8a8009d8d5bfea3c34f1646d (patch)
tree5ee46bbad77a32fd7b03ca0a9d5472f66ffb3297
parent3ba7bd82d255c555aec3882f897be471fdb69a8d (diff)
Debug promotion
-rw-r--r--src/ChessArbiter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp
index 96c7d49..0064234 100644
--- a/src/ChessArbiter.cpp
+++ b/src/ChessArbiter.cpp
@@ -130,7 +130,7 @@ bool ChessArbiter::Play(std::string move, char promote) {
if(moved.piece == 'p' && dst[1]=='1'){
board.RemovePiece(dst);
board.AddPiece(tolower(promote),dst);
- SAN+="="+promote;
+ SAN+="="+toupper(promote);
} else if(dst[1]=='8'){
board.RemovePiece(dst);
board.AddPiece(toupper(promote),dst);