Skip to content

Commit

Permalink
Indicate promotion status in bughouse FENs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Jun 25, 2023
1 parent b9e891f commit 8549ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 << "~";
}
}
Expand Down

0 comments on commit 8549ed1

Please sign in to comment.