]> git.sesse.net Git - stockfish/commitdiff
Remove depth dependence and use same limit (2000) as stat_bonus
authorpb00067 <pb00067@PHXL0356.wp.lan>
Fri, 26 Nov 2021 07:03:15 +0000 (08:03 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 1 Dec 2021 16:55:23 +0000 (17:55 +0100)
STC:
https://tests.stockfishchess.org/tests/view/619df59dc0a4ea18ba95a424
LLR: 2.96 (-2.94,2.94) <-2.25,0.25>
Total: 83728 W: 21329 L: 21242 D: 41157
Ptnml(0-2): 297, 9669, 21847, 9752, 299

LTC:
https://tests.stockfishchess.org/tests/view/619e64d7c0a4ea18ba95a475
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 79888 W: 20238 L: 20155 D: 39495
Ptnml(0-2): 57, 8391, 22980, 8444, 73

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

bench: 6792010

src/search.cpp

index 6e41f48de303cc89248a4d6472b3d21586315919..c4ed73372df2040ffee3bc7093e61e9301011ecd 100644 (file)
@@ -801,7 +801,7 @@ namespace {
     // Use static evaluation difference to improve quiet move ordering
     if (is_ok((ss-1)->currentMove) && !(ss-1)->inCheck && !priorCapture)
     {
-        int bonus = std::clamp(-depth * 4 * int((ss-1)->staticEval + ss->staticEval), -1000, 1000);
+        int bonus = std::clamp(-16 * int((ss-1)->staticEval + ss->staticEval), -2000, 2000);
         thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << bonus;
     }