summaryrefslogtreecommitdiff
path: root/src/ChessArbiter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChessArbiter.cpp')
-rw-r--r--src/ChessArbiter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChessArbiter.cpp b/src/ChessArbiter.cpp
index 593ece2..fdda48d 100644
--- a/src/ChessArbiter.cpp
+++ b/src/ChessArbiter.cpp
@@ -178,6 +178,11 @@ 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)){
+ SAN+="+";
+ }
+
// Update position map (repetitions draw)
if (positions.count(fen.board) == 0) {
positions[fen.board] = 1;