From 55eb7dd1e9be4c4d7957b501d423127934bf2bc0 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 9 Jun 2013 11:52:39 +0200 Subject: [PATCH] Use alpha instead of beta-1 It is more directly related to a fail-low. No functional change. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 12684455..00c871fd 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -716,7 +716,7 @@ namespace { && (ss-1)->reduction && threatMove != MOVE_NONE && allows(pos, (ss-1)->currentMove, threatMove)) - return beta - 1; + return alpha; } } -- 2.39.2