mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
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
This commit is contained in:
parent
5f4d44fda0
commit
a8abba0b4d
1 changed files with 1 additions and 3 deletions
|
@ -719,9 +719,7 @@ namespace {
|
|||
behind |= shift<Down+Down>(behind);
|
||||
|
||||
int bonus = popcount(safe) + popcount(behind & safe);
|
||||
int weight = pos.count<ALL_PIECES>(Us)
|
||||
- (16 - pos.count<PAWN>()) / 4;
|
||||
|
||||
int weight = pos.count<ALL_PIECES>(Us) - 1;
|
||||
Score score = make_score(bonus * weight * weight / 16, 0);
|
||||
|
||||
if (T)
|
||||
|
|
Loading…
Add table
Reference in a new issue