]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove cap from space score contribution and increase bonus
[stockfish] / src / evaluate.cpp
index a4b3c3383bdbb4cb897880053f96ec0fb1e42e5d..23ab62ec5ab178123612d14fea547c3e36daad06 100644 (file)
@@ -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<ALL_PIECES>(Us) - 2 * ei.pe->open_files();
 
-    return make_score(bonus * weight * weight / 18, 0);
+    return make_score(bonus * weight * weight / 16, 0);
   }