]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Simplify printing of engine info
[stockfish] / src / position.cpp
index f0bbff449427eaa09509645876532ebfe5b45f8d..d14f04169b95b1a2751711756dea4e730fc7f098 100644 (file)
@@ -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 << '|';