X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=3152260745f21b8cf2ed8af1ab5051825dc581c2;hp=b1a720d72f1b0d4a6b57fd9d9da1e926f8db054b;hb=91a27663084ea9be4918ba028aa2b151bc0f4e1c;hpb=bd33766da0a00d9df69afcbf31a75d5f9972f1c8 diff --git a/src/search.cpp b/src/search.cpp index b1a720d7..31522607 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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