From fd3c563f575c5ae1ce286749303eab2932609124 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Mon, 6 Oct 2025 05:01:17 -0400 Subject: [PATCH] Simplify r50 condition in cutoff Passed non-regression STC LLR: 3.11 (-2.94,2.94) <-1.75,0.25> Total: 114560 W: 29832 L: 29689 D: 55039 Ptnml(0-2): 332, 12302, 31869, 12445, 332 https://tests.stockfishchess.org/tests/view/68e38587fa806e2e8393d4a9 Passed non-regression LTC LLR: 2.99 (-2.94,2.94) <-1.75,0.25> Total: 256272 W: 65817 L: 65832 D: 124623 Ptnml(0-2): 137, 25528, 76817, 25521, 133 https://tests.stockfishchess.org/tests/view/68e69b47a017f472e763e065 closes https://github.com/official-stockfish/Stockfish/pull/6373 Bench: 2438327 --- src/search.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3cd10ad9b..734372004 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -683,10 +683,7 @@ Value Search::Worker::search( if (!PvNode && !excludedMove && ttData.depth > depth - (ttData.value <= beta) && is_valid(ttData.value) // Can happen when !ttHit or when access race in probe() && (ttData.bound & (ttData.value >= beta ? BOUND_LOWER : BOUND_UPPER)) - && (cutNode == (ttData.value >= beta) || depth > 5) - // avoid a TT cutoff if the rule50 count is high and the TT move is zeroing - && (depth > 8 || ttData.move == Move::none() || pos.rule50_count() < 80 - || (!ttCapture && type_of(pos.moved_piece(ttData.move)) != PAWN))) + && (cutNode == (ttData.value >= beta) || depth > 5)) { // If ttMove is quiet, update move sorting heuristics on TT hit if (ttData.move && ttData.value >= beta)