X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=e29f54498e1ce3bfd322b493fc73e641a8c3d873;hb=82f6779c2e549a264dbfc76d4c668f4c2ea831cd;hp=24f1e6245672be6b230e8d63d9484d811e30b2d6;hpb=bf51db2526c2abf4f8d9297615aa933045c68e67;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 24f1e624..e29f5449 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -835,7 +835,7 @@ moves_loop: // When in check and at SpNode search starts from here ext = ONE_PLY; else if (givesCheck && pos.see_sign(move) >= 0) - ext = ONE_PLY / 2; + ext = inCheck || ss->staticEval <= alpha ? ONE_PLY : ONE_PLY / 2; // Singular extension search. If all moves but one fail low on a search of // (alpha-s, beta-s), and just one fails high on (alpha, beta), then that move