1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 08:13:08 +00:00

Simplify previous #5608

https://github.com/official-stockfish/Stockfish/pull/5608

STC: https://tests.stockfishchess.org/tests/view/66fb1bab86d5ee47d953b8cc
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 25536 W: 6797 L: 6560 D: 12179
Ptnml(0-2): 93, 2953, 6460, 3148, 114

LTC https://tests.stockfishchess.org/tests/view/66fb690e86d5ee47d953b8eb
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 225114 W: 57200 L: 57188 D: 110726
Ptnml(0-2): 197, 25076, 61995, 25096, 193

closes https://github.com/official-stockfish/Stockfish/pull/5621

Bench: 1570076
This commit is contained in:
mstembera 2024-10-04 10:39:51 -07:00 committed by Disservin
parent dce72913fe
commit 3348603770

View file

@ -1213,8 +1213,7 @@ moves_loop: // When in check, search starts here
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha, newDepth, !cutNode);
// Post LMR continuation history updates (~1 Elo)
int bonus = value >= beta ? (1 + 2 * (moveCount > depth)) * stat_bonus(newDepth)
: -stat_malus(newDepth);
int bonus = value >= beta ? 3 * stat_bonus(newDepth) : -stat_malus(newDepth);
update_continuation_histories(ss, movedPiece, move.to_sq(), bonus);
}
}