Permalink
Browse files

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 <mcostalba@gmail.com>
  • Loading branch information...
mcostalba committed Dec 18, 2008
1 parent 17000d1 commit b58ad355ca6b3d81795563da3b5172efaf6cc941
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/search.cpp
View
@@ -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)))
{

0 comments on commit b58ad35

Please sign in to comment.