X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=35764b717207e38b3871f367d4edbe5c400f8fc6;hp=d533eed8c76d17172c10632c2c0cdada03a5a7a6;hb=d909d10f33df023be46a2633608bdf655d1f5a62;hpb=5cffc032da8402df79cf6cba4238b83ff5d29f7e diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d533eed8..35764b71 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -706,9 +706,9 @@ namespace { // ...count safe + (behind & safe) with a single popcount int bonus = popcount((Us == WHITE ? safe << 32 : safe >> 32) | (behind & safe)); bonus = std::min(16, bonus); - int weight = pos.count(Us); + int weight = pos.count(Us) - 2 * ei.pi->open_files(); - return make_score(bonus * weight * weight / 22, 0); + return make_score(bonus * weight * weight / 18, 0); }