mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Razor at depth one, but do razoring only when not in check
This way razoring is always based on exact evaluation and follows simple formula. Joona's test results are positive: 32-bit 1CPU: Mod - Orig: 1073 - 993 64-bit 4CPU: Mod - Orig: 759 - 721 Functionality Signature: 11448962 Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
942c18ef66
commit
d457594197
1 changed files with 2 additions and 1 deletions
|
@ -1447,8 +1447,9 @@ namespace {
|
||||||
}
|
}
|
||||||
// Null move search not allowed, try razoring
|
// Null move search not allowed, try razoring
|
||||||
else if ( !value_is_mate(beta)
|
else if ( !value_is_mate(beta)
|
||||||
|
&& !isCheck
|
||||||
&& depth < RazorDepth
|
&& depth < RazorDepth
|
||||||
&& staticValue < beta - (depth > OnePly ? NullMoveMargin + 16 * depth : 2*NullMoveMargin)
|
&& staticValue < beta - (NullMoveMargin + 16 * depth)
|
||||||
&& ss[ply - 1].currentMove != MOVE_NULL
|
&& ss[ply - 1].currentMove != MOVE_NULL
|
||||||
&& ttMove == MOVE_NONE
|
&& ttMove == MOVE_NONE
|
||||||
&& !pos.has_pawn_on_7th(pos.side_to_move()))
|
&& !pos.has_pawn_on_7th(pos.side_to_move()))
|
||||||
|
|
Loading…
Add table
Reference in a new issue