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() {
// Don't forget the plus and # sign on the SAN moves
if(IsCheckMate()){
return SAN+"#";
} else if(IsCheck(fen.player)){
return SAN+ "+";
if(IsCheck(fen.player)){
if(IsCheckMate())
return SAN+"#";
return SAN+'+';
}
return SAN;
}