mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Fix KBNK endgame
Broken by recent patch. Also better document what's happening there. Verified to restore original behaviour. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -400,7 +400,7 @@ void Position::print(Move move) const {
|
||||
char c = (color_of_piece_on(sq) == BLACK ? '=' : ' ');
|
||||
Piece piece = piece_on(sq);
|
||||
|
||||
if (piece == NO_PIECE && same_color_squares(sq, SQ_A1))
|
||||
if (piece == NO_PIECE && square_color(sq) == DARK)
|
||||
piece = NO_PIECE_DARK_SQ;
|
||||
|
||||
cout << c << pieceLetters.from_piece(piece) << c << '|';
|
||||
|
||||
Reference in New Issue
Block a user