From 11491e71eedf75763f0adf3136344fe3a244a06e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 27 Apr 2009 09:45:15 +0100 Subject: [PATCH] Remove an useless comparison in futility pruning Currently futility is allowed when depth < SelectiveDepth and SelectiveDepth is 7*OnePly, so the comprison is always true. Patch could introduce a functional change only if we choose to increase SelectiveDepth. Currently no functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index a3077680..21a13033 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1375,7 +1375,7 @@ namespace { continue; // Value based pruning - if (depth < 7 * OnePly && approximateEval < beta) + if (approximateEval < beta) { if (futilityValue == VALUE_NONE) futilityValue = evaluate(pos, ei, threadID) -- 2.39.2