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:
Marco Costalba
2011-12-28 10:49:55 +01:00
parent a695ed65a8
commit ad4739a6d4
5 changed files with 11 additions and 15 deletions

View 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 << '|';