X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f7efd41c03e628b460f690fed61023a92aa7d854;hp=7945170484d20181dee1bdbfe3b559bb079b58ad;hb=8cfcca12d1f31e69a1e00ef657743841a7ef18b9;hpb=4bc11984fc5a148ee8f1b55d6ac47c4a397cc8b8 diff --git a/src/search.cpp b/src/search.cpp index 79451704..f7efd41c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -686,7 +686,7 @@ namespace { // Step 8. Null move search with verification search (is omitted in PV nodes) if ( !PvNode && eval >= beta - && (ss->staticEval >= beta - 35 * (depth / ONE_PLY - 6) || depth >= 13 * ONE_PLY) + && ss->staticEval >= beta - 36 * depth / ONE_PLY + 225 && pos.non_pawn_material(pos.side_to_move())) { @@ -1599,10 +1599,6 @@ void Tablebases::filter_root_moves(Position& pos, Search::RootMoves& rootMoves) ProbeDepth = Options["SyzygyProbeDepth"] * ONE_PLY; Cardinality = Options["SyzygyProbeLimit"]; - // Don't filter any moves if the user requested analysis on multiple - if (Options["MultiPV"] != 1) - return; - // Skip TB probing when no TB found: !TBLargest -> !TB::Cardinality if (Cardinality > MaxCardinality) { @@ -1613,6 +1609,10 @@ void Tablebases::filter_root_moves(Position& pos, Search::RootMoves& rootMoves) if (Cardinality < popcount(pos.pieces()) || pos.can_castle(ANY_CASTLING)) return; + // Don't filter any moves if the user requested analysis on multiple + if (Options["MultiPV"] != 1) + return; + // If the current root position is in the tablebases, then RootMoves // contains only moves that preserve the draw or the win. RootInTB = root_probe(pos, rootMoves, TB::Score);