From 72b7d5790a789caf999103df88386fc5442da806 Mon Sep 17 00:00:00 2001 From: Dubslow Date: Sun, 30 Jun 2024 19:22:04 -0400 Subject: [PATCH] Probcut in check no matter if pv or capture --- src/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 4932d907..d3f0cf17 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -799,9 +799,9 @@ Value Search::Worker::search( // Step 11. A small Probcut idea, when we are in check (~4 Elo) probCutBeta = beta + 425; - if (ss->inCheck && !PvNode && ttCapture && (ttData.bound & BOUND_LOWER) - && ttData.depth >= depth - 3 && ttData.value >= probCutBeta - && std::abs(ttData.value) < VALUE_MATE_IN_MAX_PLY && std::abs(beta) < VALUE_MATE_IN_MAX_PLY) + if (ss->inCheck && (ttData.bound & BOUND_LOWER) && ttData.depth >= depth - 3 + && ttData.value >= probCutBeta && std::abs(ttData.value) < VALUE_MATE_IN_MAX_PLY + && std::abs(beta) < VALUE_MATE_IN_MAX_PLY) return probCutBeta; const PieceToHistory* contHist[] = {(ss - 1)->continuationHistory,