]> git.sesse.net Git - stockfish/commitdiff
SEE Pruning Tweak (#2183)
authorVoyagerOne <excelgeek@gmail.com>
Sun, 9 Jun 2019 12:27:50 +0000 (08:27 -0400)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Sun, 9 Jun 2019 12:27:50 +0000 (14:27 +0200)
Don't SEE prune any check extensions

STC (yellow):
LLR: -2.96 (-2.94,2.94) [0.50,4.50]
Total: 129934 W: 29390 L: 28905 D: 71639
http://tests.stockfishchess.org/tests/view/5cf6b1a70ebc5925cf08dedb

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,3.50]
Total: 102115 W: 17692 L: 17224 D: 67199
http://tests.stockfishchess.org/tests/view/5cf830710ebc5925cf090331

src/search.cpp

index 115867873748a0f6a958a84f2945fe8020cc5496..f26ab959ba27ee829c9c07c9c4069b9b3a0a57ba 100644 (file)
@@ -984,7 +984,8 @@ moves_loop: // When in check, search starts from here
               if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
                   continue;
           }
-          else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
+          else if ((!givesCheck || !(pos.blockers_for_king(~us) & from_sq(move)))
+                  && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
                   continue;
       }