]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
cutnode and movecount lmr extension simplification
[stockfish] / src / search.cpp
index 0a4b1a18d672e991d5a95b3e1e02304eecac6b3e..8ecdbc309053d5de52aadea392a589e5e109ac15 100644 (file)
@@ -1194,8 +1194,7 @@ moves_loop: // When in check, search starts here
           // deeper than the first move (this may lead to hidden double extensions).
           int deeper =   r >= -1                   ? 0
                        : moveCount <= 4            ? 2
-                       : PvNode                    ? 1
-                       : cutNode && moveCount <= 8 ? 1
+                       : PvNode || cutNode         ? 1
                        :                             0;
 
           Depth d = std::clamp(newDepth - r, 1, newDepth + deeper);
@@ -1396,6 +1395,7 @@ moves_loop: // When in check, search starts here
 
   // qsearch() is the quiescence search function, which is called by the main search
   // function with zero depth, or recursively with further decreasing depth per call.
+  // (~155 elo)
   template <NodeType nodeType>
   Value qsearch(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth) {