Skip to content

Commit

Permalink
simplify moveCountPruning
Browse files Browse the repository at this point in the history
no (significant) speedup upon renewed testing

Passed stc:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 88992 W: 22779 L: 22633 D: 43580
Ptnml(0-2): 137, 8706, 26681, 8818, 154
https://tests.stockfishchess.org/tests/view/6636c4844b68b70d85800dae

closes #5213

No functional change.
  • Loading branch information
FauziAkram authored and vondele committed May 9, 2024
1 parent 2dbb44e commit 9d6dab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,7 @@ Value Search::Worker::search(
if (!rootNode && pos.non_pawn_material(us) && bestValue > VALUE_TB_LOSS_IN_MAX_PLY)
{
// Skip quiet moves if movecount exceeds our FutilityMoveCount threshold (~8 Elo)
if (!moveCountPruning)
moveCountPruning = moveCount >= futility_move_count(improving, depth);
moveCountPruning = moveCount >= futility_move_count(improving, depth);

// Reduced depth of the next LMR search
int lmrDepth = newDepth - r;
Expand Down

0 comments on commit 9d6dab0

Please sign in to comment.