From: ianfab Date: Tue, 7 Aug 2018 21:32:13 +0000 (+0200) Subject: Extend mandatory captures that are only moves X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d288f3545f8218480dcbc4c861e9078a5c5ef7e0;p=fairystockfish.git Extend mandatory captures that are only moves STC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 485 W: 290 L: 183 D: 12 LTC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 890 W: 483 L: 371 D: 36 --- diff --git a/src/search.cpp b/src/search.cpp index 0820a47..1e6d8e3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -921,6 +921,10 @@ moves_loop: // When in check, search starts from here && !moveCountPruning && pos.see_ge(move)) extension = ONE_PLY; + else if ( pos.must_capture() // Capture extension (all moves are captures) + && pos.capture(move) + && MoveList(pos).size() == 1) + extension = ONE_PLY; // Calculate new depth for this move newDepth = depth - ONE_PLY + extension;