Skip to content

Commit

Permalink
Push expected cutting late moves up in the move ordering.
Browse files Browse the repository at this point in the history
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 official-stockfish#5608

bench: 1452807
  • Loading branch information
peregrineshahin authored and vondele committed Sep 28, 2024
1 parent cd24c45 commit 6dcc28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,8 @@ Value Search::Worker::search(
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);
}
}
Expand Down

0 comments on commit 6dcc28a

Please sign in to comment.