Simplify LMR for losers chess
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 10 Feb 2021 19:42:20 +0000 (20:42 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 10 Feb 2021 19:42:20 +0000 (20:42 +0100)
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

src/search.cpp

index 55b093c..0333a67 100644 (file)
@@ -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