X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=5abbafbcbfcd8b756dbf481efdffff9187e78016;hb=d23454854e72e1311363a8c98cd58a5d44c427f9;hp=ed029b4c4a08e6d15b3ef28f2b4b246b04ad74d9;hpb=7d42d02ec77a03c4c1e1b399df30ef8b363c1237;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index ed029b4c..5abbafbc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -440,6 +440,7 @@ namespace { if ( depth >= 12 && !stop && PVSize == 1 + && bestValue > VALUE_MATED_IN_MAX_PLY && ( RootMoves.size() == 1 || Time::now() - SearchTime > (TimeMgr.available_time() * 20) / 100)) { @@ -678,7 +679,7 @@ namespace { if (nullValue >= VALUE_MATE_IN_MAX_PLY) nullValue = beta; - if (depth < 6 * ONE_PLY) + if (depth < 12 * ONE_PLY) return nullValue; // Do verification search at high depths @@ -1224,10 +1225,11 @@ split_point_start: // At split points actual search starts from here continue; } - // Prune moves with negative or equal SEE + // Prune moves with negative or equal SEE. + // Also prune moves with positive SEE where capturing loses a tempo and SEE < beta - futilityBase. if ( futilityBase < beta && depth < DEPTH_ZERO - && pos.see(move) <= 0) + && pos.see_asymm(move, beta - futilityBase) <= 0) { bestValue = std::max(bestValue, futilityBase); continue;