mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-04-18 03:31:59 +00:00
Improve GetSAN()
This commit is contained in:
parent
d877983ce7
commit
27116f3b15
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue