]> git.sesse.net Git - stockfish/commitdiff
Simplify pruning moves with negative SEE
authorprotonspring <mike@whiteley.org>
Fri, 6 Dec 2019 15:56:17 +0000 (08:56 -0700)
committerStéphane Nicolet <cassio@free.fr>
Sun, 8 Dec 2019 23:27:12 +0000 (00:27 +0100)
This patch simplifies pruning moves with negative SEE values.

STC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 18847 W: 4211 L: 4084 D: 10552
http://tests.stockfishchess.org/tests/view/5de983f2caa7c610e4d1866e

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 25556 W: 4200 L: 4087 D: 17269
http://tests.stockfishchess.org/tests/view/5de99e21caa7c610e4d18676

Bench 5390930

src/search.cpp

index a6c93b43550722e5c4584816497b1768d3b3ce4d..f39f1de1c639e7e03703f41bdd458eeefb0c004b 100644 (file)
@@ -1478,9 +1478,7 @@ moves_loop: // When in check, search starts from here
                        && !pos.capture(move);
 
       // Don't search moves with negative SEE values
                        && !pos.capture(move);
 
       // Don't search moves with negative SEE values
-      if (  (!inCheck || evasionPrunable)
-          && !(givesCheck && pos.is_discovery_check_on_king(~pos.side_to_move(), move))
-          && !pos.see_ge(move))
+      if (  (!inCheck || evasionPrunable) && !pos.see_ge(move))
           continue;
 
       // Speculative prefetch as early as possible
           continue;
 
       // Speculative prefetch as early as possible