Skip to content

Commit

Permalink
Scale down stat bonus
Browse files Browse the repository at this point in the history
STC https://tests.stockfishchess.org/tests/view/652eff58de6d262d08d33353
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 88224 W: 22618 L: 22228 D: 43378
Ptnml(0-2): 282, 10177, 22783, 10609, 261

LTC https://tests.stockfishchess.org/tests/view/652fd13bde6d262d08d3481a
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 143508 W: 36674 L: 36142 D: 70692
Ptnml(0-2): 92, 15240, 40534, 15820, 68

Reduces the stat bonus by 20%. Maybe future patches can tune the actual bonus calculations for different histories.

closes official-stockfish/Stockfish#4836

bench: 1185932
  • Loading branch information
mstembera authored and vondele committed Oct 21, 2023
1 parent e18619d commit 8366ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movepick.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class StatsEntry {
assert(abs(bonus) <= D); // Ensure range is [-D, D]
static_assert(D <= std::numeric_limits<T>::max(), "D overflows T");

entry += bonus - entry * abs(bonus) / D;
entry += (bonus * D - entry * abs(bonus)) / (D * 5 / 4);

assert(abs(entry) <= D);
}
Expand Down

0 comments on commit 8366ec4

Please sign in to comment.