From: Dubslow Date: Fri, 20 Jan 2023 09:02:25 +0000 (-0600) Subject: `stat_bonus`: replace quadratic with nearly identical line X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3dd0a7a7cd9daf306cffc795c343459de6d6f54b;p=stockfish `stat_bonus`: replace quadratic with nearly identical line 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 --- diff --git a/src/search.cpp b/src/search.cpp index 346fd6c3..b9ba3811 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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