From b108491498ae354b118ab0803c39a9aac0cb9d28 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sat, 29 Mar 2025 22:09:17 +0100 Subject: [PATCH] allow lmr in checks | bench 2795598 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 21e8737..4bd9c16 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -253,7 +253,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { // If our static eval is far below alpha, there is only a small chance // that a quiet move will help us so we skip them int fpMargin = 100 * depth; - if (!isPV && ply && !board.InCheck() && currMove.IsQuiet() + if (!isPV && ply && currMove.IsQuiet() && depth <= 5 && staticEval + fpMargin < alpha && results.score > MATE_SCORE) { continue; }