From db78ff212da7abed937b03b120b1cf1afba2f37f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 10 Jan 2023 17:07:27 +0100 Subject: Add plus sign to SAN moves when player is in check --- src/ChessArbiter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ChessArbiter.cpp') 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; -- cgit v1.2.3