From 3627348e2b4633604a878b0e5397acb6218a6afc Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sun, 5 Mar 2017 18:56:39 -0800 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2