]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Prune evasions when we can castle
[stockfish] / src / search.cpp
index f0c1bdd978e14fdc661c2a4041bb220fce343055..340ddfc1d97f68834ff88304a72bc398c13d4874 100644 (file)
@@ -1302,8 +1302,7 @@ moves_loop: // When in check and at SpNode search starts from here
       // Detect non-capture evasions that are candidates to be pruned
       evasionPrunable =    InCheck
                        &&  bestValue > VALUE_MATED_IN_MAX_PLY
-                       && !pos.capture(move)
-                       && !pos.can_castle(pos.side_to_move());
+                       && !pos.capture(move);
 
       // Don't search moves with negative SEE values
       if (  (!InCheck || evasionPrunable)