From: Michael Chaly Date: Thu, 2 Feb 2023 10:05:54 +0000 (+0300) Subject: Do less SEE pruning in qsearch X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=da8513f0eae439f526ab0a905a3433bdb44bcf66;p=stockfish Do less SEE pruning in qsearch Current master prunes all moves with negative SEE values in qsearch. This patch sets constant negative threshold thus allowing some moves with negative SEE values to be searched. Value of threshold is completely arbitrary and can be tweaked - also it as function of depth can be tried. Original idea by author of Alexandria engine. Passed STC https://tests.stockfishchess.org/tests/view/63d79a59a67dd929a5564976 LLR: 2.94 (-2.94,2.94) <0.00,2.00> Total: 34864 W: 9392 L: 9086 D: 16386 Ptnml(0-2): 113, 3742, 9429, 4022, 126 Passed LTC https://tests.stockfishchess.org/tests/view/63d8074aa67dd929a5565bc2 LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 91616 W: 24532 L: 24126 D: 42958 Ptnml(0-2): 32, 8840, 27662, 9238, 36 closes https://github.com/official-stockfish/Stockfish/pull/4376 Bench: 4010877 --- diff --git a/src/search.cpp b/src/search.cpp index 7d618a65..b9ca3961 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1556,9 +1556,9 @@ moves_loop: // When in check, search starts here } } - // Do not search moves with negative SEE values (~5 Elo) + // Do not search moves with bad enough SEE values (~5 Elo) if ( bestValue > VALUE_TB_LOSS_IN_MAX_PLY - && !pos.see_ge(move)) + && !pos.see_ge(move, Value(-108))) continue; // Speculative prefetch as early as possible