]> git.sesse.net Git - stockfish/commitdiff
Scale down stat bonus
authormstembera <m_stembera@yahoo.com>
Fri, 20 Oct 2023 09:23:46 +0000 (02:23 -0700)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 21 Oct 2023 08:37:27 +0000 (10:37 +0200)
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 https://github.com/official-stockfish/Stockfish/pull/4836

bench: 1185932

src/movepick.h

index 652ef16166d8295b8d2561e03b00e3a866ae6071..457defa525aacbf53b3333e7f707a7104bb7ae6b 100644 (file)
@@ -51,7 +51,7 @@ public:
     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);
   }