]> git.sesse.net Git - stockfish/commitdiff
`stat_bonus`: replace quadratic with nearly identical line
authorDubslow <bunslow@gmail.com>
Fri, 20 Jan 2023 09:02:25 +0000 (03:02 -0600)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 25 Jan 2023 06:48:39 +0000 (07:48 +0100)
passed stc: https://tests.stockfishchess.org/tests/view/63ca58c90eefe8694a0c4eac
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 287960 W: 76146 L: 76201 D: 135613
Ptnml(0-2): 947, 31890, 78307, 31943, 893

passed ltc: https://tests.stockfishchess.org/tests/view/63cc8a51344bb01c191b30f0
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 73784 W: 19559 L: 19402 D: 34823
Ptnml(0-2): 33, 7171, 22327, 7328, 33

closes https://github.com/official-stockfish/Stockfish/pull/4352

bench 3990490

src/search.cpp

index 346fd6c3a7ab322c0cdc4eb4f29397cd3b799a28..b9ba3811e839fea77cf18c6bae61d3c3bc15eb33 100644 (file)
@@ -81,7 +81,7 @@ namespace {
 
   // History and stats update bonus, based on depth
   int stat_bonus(Depth d) {
-    return std::min((11 * d + 284) * d - 363 , 1650);
+    return std::min(350 * d - 400, 1650);
   }
 
   // Add a small random component to draw evaluations to avoid 3-fold blindness