From a04b07265ff5ce8ea27bd4ecb761a56341399bde Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Wed, 18 Dec 2024 14:32:48 +0300 Subject: [PATCH] Make reductionScale smoother Making the second part of the formula smoother, changing it to a linear function, increasing steadily as reductionScale increases and at the same time, it should be a little bit simpler, therefore the simplification bounds. Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 83040 W: 21493 L: 21322 D: 40225 Ptnml(0-2): 252, 9848, 21209, 9899, 312 https://tests.stockfishchess.org/tests/view/6762145486d5ee47d9543242 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 230124 W: 58485 L: 58478 D: 113161 Ptnml(0-2): 175, 25620, 63484, 25589, 194 https://tests.stockfishchess.org/tests/view/6762d4ef86d5ee47d9543367 closes https://github.com/official-stockfish/Stockfish/pull/5725 Bench: 1204658 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 4bebd985076..02d7b677707 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1703,7 +1703,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) Depth Search::Worker::reduction(bool i, Depth d, int mn, int delta) const { int reductionScale = reductions[d] * reductions[mn]; - return reductionScale - delta * 814 / rootDelta + (!i && reductionScale > 1423) * 1135 + 1304; + return reductionScale - delta * 814 / rootDelta + !i * reductionScale / 3 + 1304; } // elapsed() returns the time elapsed since the search started. If the