diff --git a/AUTHORS b/AUTHORS index 15614effd..6bf0745ad 100644 --- a/AUTHORS +++ b/AUTHORS @@ -125,6 +125,7 @@ Jonathan McDermid (jonathanmcdermid) Joost VandeVondele (vondele) Joseph Ellis (jhellis3) Joseph R. Prostko +Jost Triller (tsoj) Jörg Oster (joergoster) Julian Willemer (NightlyKing) jundery diff --git a/src/search.cpp b/src/search.cpp index 32ad708c8..b5e6e1be9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1251,9 +1251,13 @@ moves_loop: // When in check, search starts here if (!ttData.move) r += 1139; + const int threshold1 = depth <= 4 ? 2000 : 3200; + const int threshold2 = depth <= 4 ? 3500 : 4600; + // Note that if expected reduction is high, we reduce search depth here value = -search(pos, ss + 1, -(alpha + 1), -alpha, - newDepth - (r > 3200) - (r > 4600 && newDepth > 2), !cutNode); + newDepth - (r > threshold1) - (r > threshold2 && newDepth > 2), + !cutNode); } // For PV nodes only, do a full PV search on the first move or after a fail high,