From e03c5cb63320dba64f8d67951f8892702d4364be Mon Sep 17 00:00:00 2001 From: Terje Date: Sun, 26 Jan 2025 12:16:01 +0100 Subject: [PATCH] Bench: 22716589 --- src/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index 89bd461d..07a655d0 100644 --- a/src/search.c +++ b/src/search.c @@ -397,7 +397,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth int probCutBeta = beta + 200; // ProbCut - if ( depth >= 5 + if ( depth >= 3 && (!ttHit || ttBound == BOUND_LOWER || ttScore >= probCutBeta)) { InitProbcutMP(&mp, thread, ss, probCutBeta - ss->staticEval); @@ -418,7 +418,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth int score = -Quiescence(thread, ss+1, -probCutBeta, -probCutBeta+1); // If it did, do a proper search with reduced depth - if (score >= probCutBeta) + if (score >= probCutBeta && depth - 4 > 0) score = -AlphaBeta(thread, ss+1, -probCutBeta, -probCutBeta+1, depth-4, !cutnode); TakeMove(pos);