X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=cd535d885fc2e617d42c90588f2127f69e6fedfd;hb=db59696aaf91641ade911c4a6ca393a1691d78a8;hp=2698c813dfab118e78a37d1d70d8d1584c4d1e59;hpb=d7a2d5a44588676abf9b49e35a5a567fd57ec3b0;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2698c813..cd535d88 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -695,7 +695,7 @@ namespace { behind |= shift(behind); int bonus = popcount(safe) + popcount(behind & safe & ~attackedBy[Them][ALL_PIECES]); - int weight = pos.count(Us) - 1; + int weight = pos.count(Us) - 2 + pe->blocked_count() / 2; Score score = make_score(bonus * weight * weight / 16, 0); if (T)