From b2422b1e7b21a1ec2169d6d7be08449b451a82cc Mon Sep 17 00:00:00 2001 From: ianfab Date: Sat, 28 Jul 2018 15:51:02 +0200 Subject: [PATCH] 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 --- src/search.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 -- 1.7.0.4