X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f7718ce442d50136b9508405bc6f3bdb76e34654;hp=4bacbef01b6c813a9cd2ec6b1354e3b20b32b909;hb=55297064268e47103f95a1eb8fd8fe80b6aa2887;hpb=d0dc05ad419902d869efdec012a1d82a7b34ff92 diff --git a/src/search.cpp b/src/search.cpp index 4bacbef0..f7718ce4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -661,7 +661,7 @@ namespace { << " time " << current_search_time() << endl; // Print the best move and the ponder move to the standard output - if (pv[0] == MOVE_NONE) + if (pv[0] == MOVE_NONE || MultiPV > 1) { pv[0] = rml.move(0); pv[1] = MOVE_NONE; @@ -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