From: Fabian Fichter Date: Sat, 18 May 2019 08:04:38 +0000 (+0200) Subject: Less LMR for losing chess variants X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e662cf6b3226c04de7b5e3eb49dc3977af61a83d;p=fairystockfish.git Less LMR for losing chess variants giveaway STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 555 W: 269 L: 176 D: 110 http://35.161.250.236:6543/tests/view/5cdfbcee6e23db34f4206af7 giveaway LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1321 W: 557 L: 456 D: 308 http://35.161.250.236:6543/tests/view/5cdfd1a26e23db34f4206afc losers STC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 929 W: 484 L: 375 D: 70 http://35.161.250.236:6543/tests/view/5cdfbd0f6e23db34f4206afa losers LTC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 1153 W: 573 L: 463 D: 117 http://35.161.250.236:6543/tests/view/5cdfd1b06e23db34f4206afe --- diff --git a/src/search.cpp b/src/search.cpp index 598ac02..c34e380 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1040,9 +1040,10 @@ moves_loop: // When in check, search starts from here // re-searched at full depth. if ( depth >= 3 * ONE_PLY && moveCount > 1 + 3 * rootNode - && ( !(captureOrPromotion || (pos.must_capture() && MoveList(pos).size())) + && ( !captureOrPromotion || moveCountPruning - || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha)) + || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha) + && !(pos.must_capture() && MoveList(pos).size())) { Depth r = reduction(improving, depth, moveCount);