diff options
Diffstat (limited to 'src/ChessArbiter.cpp')
| -rw-r--r-- | src/ChessArbiter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp index fdda48d..8612fc4 100644 --- a/src/ChessArbiter.cpp +++ b/src/ChessArbiter.cpp @@ -178,8 +178,10 @@ bool ChessArbiter::Play(const std::string &move, char promote) { return (false); } - // Don't forget the plus sign on the SAN move - if(IsCheck(fen.player)){ + // Don't forget the plus and # sign on the SAN moves + if(IsCheckMate()){ + SAN+="#"; + } else if(IsCheck(fen.player)){ SAN+="+"; } |
