X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=31e8b0b661f46392453d097c39e137ba52bead57;hp=1f706e631fee8a1efcf3edfb92efdaf87caa4fe0;hb=3627348e2b4633604a878b0e5397acb6218a6afc;hpb=1810c4d758674dc4de288ca782851e52874f8908 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)