]> git.sesse.net Git - stockfish/commitdiff
Refactor history score calculation
authorFauziAkram <fauzi.dabat@hotmail.com>
Wed, 24 Jan 2024 11:38:59 +0000 (14:38 +0300)
committerDisservin <disservin.social@gmail.com>
Fri, 26 Jan 2024 19:44:16 +0000 (20:44 +0100)
Passed STC:
https://tests.stockfishchess.org/tests/view/65ad08b179aa8af82b979dd1
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 161376 W: 41582 L: 41498 D: 78296
Ptnml(0-2): 633, 19354, 40611, 19476, 614

Passed LTC:
https://tests.stockfishchess.org/tests/view/65af966fc865510db026c0f0
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 116526 W: 29269 L: 29143 D: 58114
Ptnml(0-2): 71, 13252, 31509, 13342, 89

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

Bench: 1317504

src/search.cpp

index f5395f98376c9593a7214cf1b0492afd5928c3c4..f4b372536c99952c382ba874717dda0b6b800874 100644 (file)
@@ -1029,7 +1029,7 @@ moves_loop:  // When in check, search starts here
                 if (lmrDepth < 6 && history < -4195 * depth)
                     continue;
 
-                history += 69 * thisThread->mainHistory[us][move.from_to()] / 32;
+                history += 2 * thisThread->mainHistory[us][move.from_to()];
 
                 lmrDepth += history / 6992;