mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +08: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:
committed by
Stéphane Nicolet
parent
389e60741f
commit
ff69d570d7
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user