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

Prune moves with equal SEE in qsearch

After 5166 games:
Mod vs Orig 890 - 762 - 3514  ELO +8 (+- 5.5) LOS 96%

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-02-22 23:23:45 +01:00
parent bd33766da0
commit 91a2766308

View file

@ -1427,6 +1427,13 @@ split_point_start: // At split points actual search starts from here
bestValue = futilityValue;
continue;
}
// Prune moves with negative or equal SEE
if ( futilityBase < beta
&& depth < DEPTH_ZERO
&& bestValue > value_mated_in(PLY_MAX)
&& pos.see(move) <= 0)
continue;
}
// Detect non-capture evasions that are candidate to be pruned