1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Allow to prune also first move

Tested togheter with previous patch; shows no regression and
is a semplification.

After 5817 games:
Mod vs Orig 939 - 892 - 3986 ELO +2 (+- 5.1)

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-12-08 19:25:52 +01:00
parent 3f14ed6602
commit f3728e66f8

View file

@ -1045,12 +1045,12 @@ split_point_start: // At split points actual search starts from here
&& !inCheck && !inCheck
&& !dangerous && !dangerous
&& move != ttMove && move != ttMove
&& !is_castle(move)) && !is_castle(move)
&& (bestValue > VALUE_MATED_IN_PLY_MAX || bestValue == -VALUE_INFINITE))
{ {
// Move count based pruning // Move count based pruning
if ( moveCount >= futility_move_count(depth) if ( moveCount >= futility_move_count(depth)
&& (!threatMove || !connected_threat(pos, move, threatMove)) && (!threatMove || !connected_threat(pos, move, threatMove)))
&& bestValue > VALUE_MATED_IN_PLY_MAX) // FIXME bestValue is racy
{ {
if (SpNode) if (SpNode)
lock_grab(&(sp->lock)); lock_grab(&(sp->lock));
@ -1075,7 +1075,6 @@ split_point_start: // At split points actual search starts from here
// Prune moves with negative SEE at low depths // Prune moves with negative SEE at low depths
if ( predictedDepth < 2 * ONE_PLY if ( predictedDepth < 2 * ONE_PLY
&& bestValue > VALUE_MATED_IN_PLY_MAX
&& pos.see_sign(move) < 0) && pos.see_sign(move) < 0)
{ {
if (SpNode) if (SpNode)