diff --git a/src/search.cpp b/src/search.cpp index fbc97bb4..2f0b164a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -869,13 +869,9 @@ Value Search::Worker::search( // Step 10. Internal iterative reductions // For PV nodes without a ttMove as well as for deep enough cutNodes, we decrease depth. // (* Scaler) Especially if they make IIR more aggressive. - if ((PvNode || (cutNode && depth >= 7)) && !ttData.move) + if (((PvNode || cutNode) && depth >= 7 - 4 * PvNode) && !ttData.move) depth -= 2; - // Use qsearch if depth <= 0 - if (depth <= 0) - return qsearch(pos, ss, alpha, beta); - // Step 11. ProbCut // If we have a good enough capture (or queen promotion) and a reduced search // returns a value much above beta, we can (almost) safely prune the previous move.