From ba72a38e1ab8ddcc7762d6153d76d47dc58aad5d Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Fri, 15 Nov 2024 22:31:46 -0800 Subject: [PATCH] return in qs when reaching alpha bench 798787 --- src/search.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 94b20c85be2..6042e1ef8fd 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1674,10 +1674,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) if (PvNode) // Update pv even in fail-high case update_pv(ss->pv, move, (ss + 1)->pv); - if (value < beta) // Update alpha here! - alpha = value; - else - break; // Fail high + break; } } }