X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ec594d20a202a1f4619605ccae86289f375b4d41;hp=1ffe1e97adb7291f532c1dce631adaad22f6a86c;hb=8c61bbda54b0ec06cb05b89db4342d890dd21798;hpb=847bc0e80fa78a81b028515da03a90ea4dd40458 diff --git a/src/search.cpp b/src/search.cpp index 1ffe1e97..ec594d20 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -934,12 +934,10 @@ moves_loop: // When in check search starts from here && !pos.see_ge(move, Value(-35 * lmrDepth * lmrDepth))) continue; } - else if (depth < 7 * ONE_PLY && !extension) - { - Value v = -Value(400 - 100 * PvNode + 35 * depth / ONE_PLY * depth / ONE_PLY); - if (!pos.see_ge(move, v)) + else if ( depth < 7 * ONE_PLY + && !extension + && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) continue; - } } // Speculative prefetch as early as possible