From d288f3545f8218480dcbc4c861e9078a5c5ef7e0 Mon Sep 17 00:00:00 2001 From: ianfab Date: Tue, 7 Aug 2018 23:32:13 +0200 Subject: [PATCH] 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 --- src/search.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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; -- 1.7.0.4