From 08bcfd8d4df53599e85da702097604907f97be54 Mon Sep 17 00:00:00 2001 From: Terje Date: Sun, 29 Dec 2024 02:09:29 +0100 Subject: [PATCH] Bench: 24323046 --- src/search.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/search.c b/src/search.c index 251cc4d2..dd297feb 100644 --- a/src/search.c +++ b/src/search.c @@ -463,6 +463,13 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth if (moveCount > (improving ? depth * depth : -2 + depth * depth / 2)) mp.onlyNoisy = true; + // Futility pruning + if ( !inCheck + && quiet + && lmrDepth < 5 + && eval + 200 + 200 * lmrDepth <= alpha) + continue; + // History pruning if (lmrDepth < 3 && ss->histScore < -1024 * depth) continue;