From: Fabian Fichter Date: Wed, 10 Feb 2021 19:42:20 +0000 (+0100) Subject: Simplify LMR for losers chess X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=100b4d16e581cdf6106a7d496e2d8a711b141435;p=fairystockfish.git Simplify LMR for losers chess losers STC LLR: 2.99 (-2.94,2.94) [-10.00,5.00] Total: 1844 W: 823 L: 775 D: 246 http://www.variantfishtest.org:6543/tests/view/602303586e23db669974e8ca losers LTC LLR: 2.99 (-2.94,2.94) [-10.00,5.00] Total: 1579 W: 711 L: 661 D: 207 http://www.variantfishtest.org:6543/tests/view/602389266e23db669974e8d5 --- diff --git a/src/search.cpp b/src/search.cpp index 55b093c..0333a67 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1244,7 +1244,7 @@ moves_loop: // When in check, search starts from here // re-searched at full depth. if ( depth >= 3 && moveCount > 1 + 2 * rootNode - && !(pos.must_capture() && (givesCheck || pos.has_capture())) + && !(pos.must_capture() && pos.has_capture()) && ( !captureOrPromotion || moveCountPruning || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha