]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Prune moves with equal SEE in qsearch
[stockfish] / src / search.cpp
index b1a720d72f1b0d4a6b57fd9d9da1e926f8db054b..3152260745f21b8cf2ed8af1ab5051825dc581c2 100644 (file)
@@ -1427,6 +1427,13 @@ split_point_start: // At split points actual search starts from here
                   bestValue = futilityValue;
               continue;
           }
+
+          // Prune moves with negative or equal SEE
+          if (   futilityBase < beta
+              && depth < DEPTH_ZERO
+              && bestValue > value_mated_in(PLY_MAX)
+              && pos.see(move) <= 0)
+              continue;
       }
 
       // Detect non-capture evasions that are candidate to be pruned