From: Stefan Geschwentner Date: Fri, 12 Jul 2019 08:17:24 +0000 (+0200) Subject: Full bonus for LMR stats update X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ff69d570d774c465b63ed65f8f14afdaac4eb107 Full bonus for LMR stats update Simplify previous commit by using the full bonus for LMR-triggered stats update. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 23684 W: 5255 L: 5137 D: 13292 http://tests.stockfishchess.org/tests/view/5d2826660ebc5925cf0d5180 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 16245 W: 2832 L: 2704 D: 10709 http://tests.stockfishchess.org/tests/view/5d282e9c0ebc5925cf0d529b Closes https://github.com/official-stockfish/Stockfish/pull/2236 Bench: 3361902 --- diff --git a/src/search.cpp b/src/search.cpp index ea0c64f1..bd5ae75e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1134,9 +1134,8 @@ moves_loop: // When in check, search starts from here if (doLMR && !captureOrPromotion) { - int bonus = stat_bonus(newDepth) / 2; - if (value <= alpha) - bonus = -bonus; + int bonus = value > alpha ? stat_bonus(newDepth) + : -stat_bonus(newDepth); update_continuation_histories(ss, movedPiece, to_sq(move), bonus); }