From: ianfab Date: Sat, 28 Jul 2018 13:51:02 +0000 (+0200) Subject: Skip early pruning in case of mandatory captures X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b2422b1e7b21a1ec2169d6d7be08449b451a82cc;p=fairystockfish.git Skip early pruning in case of mandatory captures giveaway STC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 86 W: 83 L: 1 D: 2 losers STC LLR: 2.98 (-2.94,2.94) [0.00,10.00] Total: 96 W: 89 L: 3 D: 4 --- diff --git a/src/search.cpp b/src/search.cpp index 8c0a1ef..0820a47 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -734,6 +734,10 @@ namespace { improving = ss->staticEval >= (ss-2)->staticEval || (ss-2)->staticEval == VALUE_NONE; + // Skip early pruning in case of mandatory capture + if (pos.must_capture() && MoveList(pos).size()) + goto moves_loop; + // Step 8. Futility pruning: child node (~30 Elo) if ( !rootNode && depth < 7 * ONE_PLY