Skip to content

Commit

Permalink
tweack.
Browse files Browse the repository at this point in the history
bench 3538137
  • Loading branch information
Vizvezdenec committed Mar 20, 2019
1 parent 1513839 commit 3cfe374
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evaluate.cpp
Expand Up @@ -653,7 +653,8 @@ namespace {
defendedSquares &= attackedBy[Us][ALL_PIECES];

if (!(pos.pieces(Them) & bb))
unsafeSquares &= (attackedBy[Them][ALL_PIECES] | pos.pieces(Them)) & ~attackedBy[Us][PAWN];
unsafeSquares &= ((attackedBy[Them][ALL_PIECES] & ~attackedBy[Us][ALL_PIECES]) | attackedBy2[Them] | pos.pieces(Them))
& ~attackedBy[Us][PAWN];

// If there aren't any enemy attacks, assign a big bonus. Otherwise
// assign a smaller bonus if the block square isn't attacked.
Expand Down

0 comments on commit 3cfe374

Please sign in to comment.