X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=a487ed1305b1ccdc8aabe5b42858ec71799b5895;hp=83ed2aebcd43eec239056671b373579ebb2fbf8e;hb=939ffe454d28556ee7653af4d3322b8c8ba470be;hpb=e57d2d9d4714fd085042f88a037be93772956105 diff --git a/src/search.cpp b/src/search.cpp index 83ed2aeb..a487ed13 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1173,8 +1173,8 @@ moves_loop: // When in check, search starts here // In general we want to cap the LMR depth search at newDepth. But if // reductions are really negative and movecount is low, we allow this move - // to be searched deeper than the first move, unless ttMove was extended by 2. - Depth d = std::clamp(newDepth - r, 1, newDepth + (r < -1 && moveCount <= 5 && !doubleExtension)); + // to be searched deeper than the first move in specific cases. + Depth d = std::clamp(newDepth - r, 1, newDepth + (r < -1 && (moveCount <= 5 || (depth > 6 && PvNode)) && !doubleExtension)); value = -search(pos, ss+1, -(alpha+1), -alpha, d, true);