]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Prune all negative see moves at low depths
[stockfish] / src / search.cpp
index f5e1a00002b2fc1fc21035d3835c710632132ca7..f7718ce442d50136b9508405bc6f3bdb76e34654 100644 (file)
@@ -1287,6 +1287,17 @@ split_point_start: // At split points actual search starts from here
 
               continue;
           }
+
+          // Prune neg. see moves at low depths
+          if (   predictedDepth < 2 * ONE_PLY
+              && bestValue > value_mated_in(PLY_MAX)
+              && pos.see_sign(move) < 0)
+          {
+              if (SpNode)
+                  lock_grab(&(sp->lock));
+
+              continue;
+          }
       }
 
       // Step 13. Make the move