From: VoyagerOne Date: Mon, 6 Mar 2017 02:56:39 +0000 (-0800) Subject: Allow pruning advance pawn pushes if not near endgame X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3627348e2b4633604a878b0e5397acb6218a6afc;hp=728ce2195c505b73305d21a326cee4010d5dbf0e 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 --- diff --git a/src/search.cpp b/src/search.cpp index 1f706e63..31e8b0b6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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)