File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments