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

Push expected cutting late moves up in the move ordering.

since the passing of the LMR verification is coming from a relatively late move
this means we have wasted some time trying/picking other moves, and it would
make sense to push it up in the move ordering for future positions not to be as
late.

Passed STC:
https://tests.stockfishchess.org/tests/view/66f0f69186d5ee47d953b2aa
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 34144 W: 9024 L: 8709 D: 16411
Ptnml(0-2): 137, 3875, 8732, 4192, 136

Passed LTC:
https://tests.stockfishchess.org/tests/view/66f1d84a86d5ee47d953b325
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 62808 W: 16054 L: 15684 D: 31070
Ptnml(0-2): 24, 6725, 17555, 7057, 43

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

bench: 1452807
This commit is contained in:
peregrineshahin 2024-09-20 14:09:03 +03:00 committed by Joost VandeVondele
parent 3ac75cd27d
commit 56444ce1f7

View file

@ -1201,8 +1201,8 @@ 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 ? stat_bonus(newDepth) : -stat_malus(newDepth);
int bonus = value >= beta ? (1 + 2 * (moveCount > depth)) * stat_bonus(newDepth)
: -stat_malus(newDepth);
update_continuation_histories(ss, movedPiece, move.to_sq(), bonus);
}
}