]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Extend captures and promotions
[stockfish] / src / search.cpp
index 5aa506446c3f68ef7474e4ecd49709714926c622..0d7575aa5248433ae0d6e788ea40d8267b288cb8 100644 (file)
@@ -1094,6 +1094,14 @@ moves_loop: // When in check, search starts here
                   return beta;
           }
       }
+
+      // Capture extensions for PvNodes and cutNodes
+      else if (   (PvNode || cutNode) 
+               && captureOrPromotion 
+               && moveCount != 1)
+          extension = 1;
+
+      // Check extensions
       else if (   givesCheck
                && depth > 6
                && abs(ss->staticEval) > Value(100))