From: Fabian Fichter Date: Sat, 1 Sep 2018 09:21:05 +0000 (+0200) Subject: Tweak LMR pruning for mandatory captures X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=630f669590674ccb1437838e12238294ed529967;p=fairystockfish.git Tweak LMR pruning for mandatory captures STC giveaway LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 799 W: 359 L: 264 D: 176 http://35.161.250.236:6543/tests/view/5b8a5c376e23db0fbab0dd0d --- diff --git a/src/search.cpp b/src/search.cpp index 1b79a9d..d984956 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -997,7 +997,7 @@ moves_loop: // When in check, search starts from here { Depth r = reduction(improving, depth, moveCount); - if (captureOrPromotion) // (~5 Elo) + if (captureOrPromotion || (pos.must_capture() && MoveList(pos).size())) // (~5 Elo) { // Increase reduction by comparing opponent's stat score if ((ss-1)->statScore >= 0)