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

Prune all negative see moves at low depths

After 2036 games Mod- Orig:
381 - 278 - 1377 ELO +17 (+- 6.2) LOS 99%

One of the biggest increases ever !

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2010-11-30 14:46:41 +02:00 committed by Marco Costalba
parent 6ed409ecee
commit 5529706426

View file

@ -1287,6 +1287,17 @@ split_point_start: // At split points actual search starts from here
continue;
}
// Prune neg. see moves at low depths
if ( predictedDepth < 2 * ONE_PLY
&& bestValue > value_mated_in(PLY_MAX)
&& pos.see_sign(move) < 0)
{
if (SpNode)
lock_grab(&(sp->lock));
continue;
}
}
// Step 13. Make the move