1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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
This commit is contained in:
Stefan Geschwentner 2019-07-12 10:17:24 +02:00 committed by Stéphane Nicolet
parent 389e60741f
commit ff69d570d7

View file

@ -1134,9 +1134,8 @@ moves_loop: // When in check, search starts from here
if (doLMR && !captureOrPromotion) if (doLMR && !captureOrPromotion)
{ {
int bonus = stat_bonus(newDepth) / 2; int bonus = value > alpha ? stat_bonus(newDepth)
if (value <= alpha) : -stat_bonus(newDepth);
bonus = -bonus;
update_continuation_histories(ss, movedPiece, to_sq(move), bonus); update_continuation_histories(ss, movedPiece, to_sq(move), bonus);
} }