From 3d49a99aaf75f6f44ef6ec5a22b0acd191b8d01e Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Wed, 24 Jan 2024 14:38:59 +0300 Subject: [PATCH] Refactor history score calculation 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index f5395f98..f4b37253 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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;