mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-04-09 14:55:20 +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() {
|
||||
// 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue