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
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);
}