mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Adjust bonus to move that caused a fail low
This is an elo gainer and simultaneously a minor logical fix to bonuses that caused a fail low. It increases maximum of statscore based subtraction - but disallows negative bonuses. Passed STC: https://tests.stockfishchess.org/tests/view/66955e6f4ff211be9d4ec063 LLR: 2.94 (-2.94,2.94) <0.00,2.00> Total: 44640 W: 11805 L: 11472 D: 21363 Ptnml(0-2): 166, 5178, 11335, 5439, 202 Passed LTC: https://tests.stockfishchess.org/tests/view/66963fde4ff211be9d4ec190 LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 72288 W: 18478 L: 18082 D: 35728 Ptnml(0-2): 50, 7919, 19825, 8285, 65 closes https://github.com/official-stockfish/Stockfish/pull/5494 Bench: 1477054
This commit is contained in:
parent
c2837769e0
commit
a8401e803d
1 changed files with 3 additions and 1 deletions
|
@ -1368,7 +1368,9 @@ moves_loop: // When in check, search starts here
|
|||
+ 32 * (!(ss - 1)->inCheck && bestValue > -(ss - 1)->staticEval + 76));
|
||||
|
||||
// Proportional to "how much damage we have to undo"
|
||||
bonus += std::clamp(-(ss - 1)->statScore / 100, -64, 300);
|
||||
bonus += std::clamp(-(ss - 1)->statScore / 100, -94, 300);
|
||||
|
||||
bonus = std::max(bonus, 0);
|
||||
|
||||
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
|
||||
stat_bonus(depth) * bonus / 100);
|
||||
|
|
Loading…
Add table
Reference in a new issue