From 91a05edd66f3d2cd59ebae70a277b3fbc0a39e93 Mon Sep 17 00:00:00 2001 From: Terje Date: Sat, 9 Sep 2023 13:07:53 +0200 Subject: [PATCH] Bench: 16641667 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 85665816..1eda8ea2 100644 --- a/src/search.c +++ b/src/search.c @@ -310,7 +310,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth if (cutnode && depth >= 7 && !ttMove) depth--; - if (ttHit && ttScore <= alpha && ttBound != BOUND_LOWER && ttDepth >= depth) + if (ttHit && depth >= 4 && ttScore <= alpha && ttBound != BOUND_LOWER && ttDepth > depth - 3) depth--; // Skip pruning in check, pv nodes, early iterations, when proving singularity, looking for terminal scores, or after a null move