mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +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:
@@ -463,7 +463,7 @@ namespace {
|
||||
if (bonus && bit_is_set(ei.attackedBy[Us][PAWN], s))
|
||||
{
|
||||
if ( !pos.pieces(KNIGHT, Them)
|
||||
&& !(SquaresByColorBB[color_of(s)] & pos.pieces(BISHOP, Them)))
|
||||
&& !(same_color_squares(s) & pos.pieces(BISHOP, Them)))
|
||||
bonus += bonus + bonus / 2;
|
||||
else
|
||||
bonus += bonus / 2;
|
||||
|
||||
Reference in New Issue
Block a user