mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 03:29:14 +00:00
Allow pruning advance pawn pushes if not near endgame
STC: LLR: -2.95 (-2.94,2.94) [0.00,5.00] Total: 101088 W: 18016 L: 17717 D: 65355 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 61194 W: 8108 L: 7791 D: 45295 Bench: 5803228 Closes #1023
This commit is contained in:
parent
728ce2195c
commit
3627348e2b
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ moves_loop: // When in check search starts from here
|
|||
{
|
||||
if ( !captureOrPromotion
|
||||
&& !givesCheck
|
||||
&& !pos.advanced_pawn_push(move))
|
||||
&& (!pos.advanced_pawn_push(move) || pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK) >= 5000))
|
||||
{
|
||||
// Move count based pruning
|
||||
if (moveCountPruning)
|
||||
|
|
Loading…
Add table
Reference in a new issue