From 6ebd96825576b2da8e8acf2ac85d0b82a7531424 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 10 Jan 2023 17:13:23 +0100 Subject: Add # sign to SAN moves when player is checkmate --- src/ChessArbiter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ChessArbiter.cpp') 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+="+"; } -- cgit v1.2.3