From: candirufish <38038147+candirufish@users.noreply.github.com> Date: Mon, 31 May 2021 04:47:35 +0000 (+0200) Subject: Check Extension with Static Evaluation X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e8418bb1b92800550264b9a4993f51208f8fe681 Check Extension with Static Evaluation extension for checking moves, at higher depth and more decisive positions. stc: LLR: 2.97 (-2.94,2.94) <-0.50,2.50> Total: 87008 W: 7337 L: 7100 D: 72571 Ptnml(0-2): 264, 5737, 31270, 5964, 269 https://tests.stockfishchess.org/tests/view/60b1034787a1a67ae56c47b6 ltc: LLR: 2.94 (-2.94,2.94) <0.50,3.50> Total: 79320 W: 2629 L: 2432 D: 74259 Ptnml(0-2): 29, 2205, 35000, 2392, 34 https://tests.stockfishchess.org/tests/view/60b1ae0b87a1a67ae56c487c closes https://github.com/official-stockfish/Stockfish/pull/3514 Bench: 4447112 --- diff --git a/src/search.cpp b/src/search.cpp index 74a92bc6..2b4e4f1e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1097,6 +1097,10 @@ moves_loop: // When in check, search starts from here return beta; } } + else if ( givesCheck + && depth > 6 + && abs(ss->staticEval) > Value(100)) + extension = 1; // Add extension to new depth newDepth += extension;