1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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>
This commit is contained in:
Marco Costalba 2008-12-18 22:01:56 +01:00
parent 17000d1ea0
commit b58ad355ca

View 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)))
{