]> git.sesse.net Git - stockfish/commitdiff
Revert: "Do not razor when in check"
authorMarco Costalba <mcostalba@gmail.com>
Thu, 18 Dec 2008 21:01:56 +0000 (22:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 18 Dec 2008 21:01:56 +0000 (22:01 +0100)
It is slightly weaker after 500 games. Keep the
check on mate values.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index c32171ca47c2ec5a9bc49a5cb1707e0a9a254f61..c3f96e13de0e1b69e1034507524eaec542b8991f 100644 (file)
@@ -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)))
     {