Improve GetSAN()

This commit is contained in:
Loic Guegan 2023-01-10 18:58:24 +01:00
parent d877983ce7
commit 27116f3b15

View file

@ -429,10 +429,10 @@ bool ChessArbiter::IsCheckMate() {
std::string ChessArbiter::GetSAN() { std::string ChessArbiter::GetSAN() {
// Don't forget the plus and # sign on the SAN moves // Don't forget the plus and # sign on the SAN moves
if(IsCheckMate()){ if(IsCheck(fen.player)){
return SAN+"#"; if(IsCheckMate())
} else if(IsCheck(fen.player)){ return SAN+"#";
return SAN+ "+"; return SAN+'+';
} }
return SAN; return SAN;
} }