From afdc35398c66e536af8f40c5a8fd80f2a05f1e5c Mon Sep 17 00:00:00 2001 From: disservin Date: Sun, 12 Jan 2025 20:16:36 +0100 Subject: [PATCH] Update search.cpp --- src/search.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/search.cpp b/src/search.cpp index accf8be3516..9094224c6ff 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -775,6 +775,7 @@ Value Search::Worker::search( // Step 7. Razoring (~1 Elo) // If eval is really low, check with qsearch if we can exceed alpha. If the // search suggests we cannot exceed alpha, return a speculative fail low. + // For PvNodes, we must have a guard against mates being returned. if (!PvNode && eval < alpha - 469 - 307 * depth * depth) return qsearch(pos, ss, alpha - 1, alpha);