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:
parent
389e60741f
commit
ff69d570d7
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue