mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Advanced pawn pushes tweak (#2175)
passed STC http://tests.stockfishchess.org/tests/view/5cf586ee0ebc5925cf08c0ed LLR: 2.96 (-2.94,2.94) [0.50,4.50] Total: 29496 W: 6718 L: 6406 D: 16372 passed LTC http://tests.stockfishchess.org/tests/view/5cf59b630ebc5925cf08c343 LLR: 2.95 (-2.94,2.94) [0.00,3.50] Total: 40778 W: 7057 L: 6765 D: 26956 original idea from early 2018 by @jerrydonaldwatson Code slightly rewritten to be shorter and more logical, no functinal changes compared to passed patch.
This commit is contained in:
parent
09caea5cab
commit
2d06d659c0
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,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(~us) > BishopValueMg))
|
||||
{
|
||||
// Move count based pruning (~30 Elo)
|
||||
if (moveCountPruning)
|
||||
|
|
Loading…
Add table
Reference in a new issue