]> git.sesse.net Git - stockfish/commitdiff
No DC prune in QS (#2185)
authorVoyagerOne <excelgeek@gmail.com>
Sun, 9 Jun 2019 22:26:47 +0000 (18:26 -0400)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Sun, 9 Jun 2019 22:26:47 +0000 (00:26 +0200)
Don't prune discover checks in qSearch

STC:
LLR: 2.96 (-2.94,2.94) [0.50,4.50]
Total: 23176 W: 5320 L: 5039 D: 12817
http://tests.stockfishchess.org/tests/view/5cfbc9350ebc5925cf094ab3

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,3.50]
Total: 128428 W: 22222 L: 21679 D: 84527
http://tests.stockfishchess.org/tests/view/5cfbf0b70ebc5925cf094ebc

Bench: 3883245

src/search.cpp

index 0e10f44f3a77f70538539365f311259b2b2e9e65..50bce13c309370fa7859073be858121aa2948ff5 100644 (file)
@@ -1363,6 +1363,7 @@ moves_loop: // When in check, search starts from here
 
       // Don't search moves with negative SEE values
       if (  (!inCheck || evasionPrunable)
+          && (!givesCheck || !(pos.blockers_for_king(~pos.side_to_move()) & from_sq(move)))
           && !pos.see_ge(move))
           continue;