X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=333d04aca277d0b456800017980887967d14e09d;hb=0f2df4e4afa37946e02a2b647ff21146e0588af7;hp=b58d4a03dca3b7d291a6a84fbc49ccbd7174e198;hpb=64a6138d3736babad0f0d9758e3d0e5475f477dd;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b58d4a03..333d04ac 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -560,8 +560,7 @@ namespace { // Bonus for restricting their piece moves restricted = attackedBy[Them][ALL_PIECES] - & ~attackedBy[Them][PAWN] - & ~attackedBy2[Them] + & ~stronglyProtected & attackedBy[Us][ALL_PIECES]; score += RestrictedPiece * popcount(restricted);