From: xoto10 Date: Sun, 5 May 2019 13:22:40 +0000 (+0100) Subject: Remove pawn count in space() calculation #2139 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a8abba0b4d127f608e8e8dde4583d6389b3c2339;p=stockfish Remove pawn count in space() calculation #2139 Simplification. Various attempts to optimise the pawn count bonus showed little effect, so remove pawn count altogether and compensate by subtracting 1 instead of 4. STC 10+0.1 th 1: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 152244 W: 33709 L: 33847 D: 84688 http://tests.stockfishchess.org/tests/view/5cceed330ebc5925cf04170e LTC 60+0.6 th 1: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 24100 W: 4079 L: 3964 D: 16057 http://tests.stockfishchess.org/tests/view/5cd5b6b80ebc5925cf04e889 Bench: 3648841 --- 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)