From bdb2963bc38893fd8a8009d8d5bfea3c34f1646d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 26 Dec 2022 22:08:05 +0100 Subject: [PATCH] Debug promotion --- src/ChessArbiter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);