mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Retire SquaresByColorBB[] and enum SquareColor
Use same_color_squares() instead. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -338,7 +338,7 @@ void Position::print(Move move) const {
|
||||
Piece piece = piece_on(sq);
|
||||
char c = (color_of(piece) == BLACK ? '=' : ' ');
|
||||
|
||||
if (piece == NO_PIECE && color_of(sq) == DARK)
|
||||
if (piece == NO_PIECE && !opposite_colors(sq, SQ_A1))
|
||||
piece++; // Index the dot
|
||||
|
||||
cout << c << PieceToChar[piece] << c << '|';
|
||||
|
||||
Reference in New Issue
Block a user