Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit b58ad355ca6b3d81795563da3b5172efaf6cc941 1 parent 17000d1
@mcostalba authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/search.cpp
View
3  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)))
{
Please sign in to comment.
Something went wrong with that request. Please try again.