X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=d1a8ffd31fb4ab954ed3849bfa927d58bde5c3bf;hp=5750d82a7281bbd9ff91f6b22f137b9e9fac0600;hb=a8abba0b4d127f608e8e8dde4583d6389b3c2339;hpb=4e72e2a964754611de85536c13ae069f85839b85 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 5750d82a..d1a8ffd3 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -719,9 +719,7 @@ namespace { behind |= shift(behind); int bonus = popcount(safe) + popcount(behind & safe); - int weight = pos.count(Us) - - (16 - pos.count()) / 4; - + int weight = pos.count(Us) - 1; Score score = make_score(bonus * weight * weight / 16, 0); if (T)