X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=23ab62ec5ab178123612d14fea547c3e36daad06;hp=a4b3c3383bdbb4cb897880053f96ec0fb1e42e5d;hb=06175c6055400dca1bbeef20956f35938046d104;hpb=14548312203bcd164f3bfb778c7e29abd89109dd diff --git a/src/evaluate.cpp b/src/evaluate.cpp index a4b3c338..23ab62ec 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -720,10 +720,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) - 2 * ei.pe->open_files(); - return make_score(bonus * weight * weight / 18, 0); + return make_score(bonus * weight * weight / 16, 0); }