Skip to content

Commit 0260ec8

Browse files
committed
Merge branch 'master' of https://github.com/fairy-stockfish/Fairy-Stockfish into tools
2 parents 3f3e0e2 + 742380c commit 0260ec8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/position.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ std::ostream& operator<<(std::ostream& os, const Position& pos) {
7070
os << " | *";
7171
else if (pos.unpromoted_piece_on(make_square(f, r)))
7272
os << " |+" << pos.piece_to_char()[pos.unpromoted_piece_on(make_square(f, r))];
73+
else if (((pos.captures_to_hand() && !pos.drop_loop()) || pos.two_boards()) && pos.is_promoted(make_square(f, r)))
74+
os << " |~" << pos.piece_to_char()[pos.piece_on(make_square(f, r))];
7375
else
7476
os << " | " << pos.piece_to_char()[pos.piece_on(make_square(f, r))];
7577

78+
#ifdef LARGEBOARDS
79+
os << " |" << (pos.max_rank() == RANK_10 && CurrentProtocol != UCI_GENERAL ? r : 1 + r);
80+
#else
7681
os << " |" << (1 + r);
82+
#endif
7783
if (r == pos.max_rank() || r == RANK_1)
7884
{
7985
Color c = r == RANK_1 ? WHITE : BLACK;

0 commit comments

Comments
 (0)