mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +08: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:
@@ -1236,8 +1236,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Null move search not allowed, try razoring
|
// Null move search not allowed, try razoring
|
||||||
else if ( !isCheck
|
else if ( !value_is_mate(beta)
|
||||||
&& !value_is_mate(beta)
|
|
||||||
&& ( (approximateEval < beta - RazorMargin && depth < RazorDepth)
|
&& ( (approximateEval < beta - RazorMargin && depth < RazorDepth)
|
||||||
||(approximateEval < beta - PawnValueMidgame && depth <= OnePly)))
|
||(approximateEval < beta - PawnValueMidgame && depth <= OnePly)))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user