allow lmr in checks | bench 2795598 #44

Merged
rektdie merged 1 commits from lmr_no_check into main 2025-03-29 23:05:38 +01:00
Showing only changes of commit b108491498 - Show all commits
+1 -1
View File
@@ -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 // 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 // that a quiet move will help us so we skip them
int fpMargin = 100 * depth; 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) { && depth <= 5 && staticEval + fpMargin < alpha && results.score > MATE_SCORE) {
continue; continue;
} }