From b58ad355ca6b3d81795563da3b5172efaf6cc941 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 18 Dec 2008 22:01:56 +0100 Subject: [PATCH] Revert: "Do not razor when in check" It is slightly weaker after 500 games. Keep the check on mate values. Signed-off-by: Marco Costalba --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index c32171ca..c3f96e13 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1236,8 +1236,7 @@ namespace { } } // Null move search not allowed, try razoring - else if ( !isCheck - && !value_is_mate(beta) + else if ( !value_is_mate(beta) && ( (approximateEval < beta - RazorMargin && depth < RazorDepth) ||(approximateEval < beta - PawnValueMidgame && depth <= OnePly))) { -- 2.39.2