From: Fabian Fichter Date: Sun, 25 Jun 2023 20:36:28 +0000 (+0200) Subject: Indicate promotion status in bughouse FENs X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8549ed1dd01e641e234e073a0b86dac70923dcf4;p=fairystockfish.git Indicate promotion status in bughouse FENs --- diff --git a/src/position.cpp b/src/position.cpp index eb2a9ce..3da05e2 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -698,7 +698,7 @@ string Position::fen(bool sfen, bool showPromoted, int countStarted, std::string ss << piece_to_char()[piece_on(make_square(f, r))]; // Set promoted pieces - if (((captures_to_hand() && !drop_loop()) || showPromoted) && is_promoted(make_square(f, r))) + if (((captures_to_hand() && !drop_loop()) || two_boards() || showPromoted) && is_promoted(make_square(f, r))) ss << "~"; } }