mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Prune dangerous moves at low depth
At very low depths prune captures, promotions and checks if see is negative. STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 6772 W: 1328 L: 1173 D: 4271 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 8917 W: 1270 L: 1122 D: 6525 bench: 6024713
This commit is contained in:
parent
e340ce221c
commit
38428ada54
1 changed files with 10 additions and 0 deletions
|
@ -956,6 +956,16 @@ moves_loop: // When in check search starts from here
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ( depth < 3 * ONE_PLY
|
||||||
|
&& !inCheck
|
||||||
|
&& bestValue > VALUE_MATED_IN_MAX_PLY
|
||||||
|
&& !rootNode
|
||||||
|
&& ( captureOrPromotion
|
||||||
|
|| givesCheck
|
||||||
|
|| pos.advanced_pawn_push(move))
|
||||||
|
&& pos.see_sign(move) < VALUE_ZERO
|
||||||
|
)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Speculative prefetch as early as possible
|
// Speculative prefetch as early as possible
|
||||||
prefetch(TT.first_entry(pos.key_after(move)));
|
prefetch(TT.first_entry(pos.key_after(move)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue