Skip to content

Commit

Permalink
Advanced pawn pushes tweak (#2175)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vizvezdenec authored and mcostalba committed Jun 9, 2019
1 parent 09caea5 commit 2d06d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -958,7 +958,7 @@ namespace {

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)
Expand Down

0 comments on commit 2d06d65

Please sign in to comment.