Skip to content

Commit

Permalink
Simplify post-lmr conthist bonus
Browse files Browse the repository at this point in the history
bench 989661
  • Loading branch information
xu-shawn committed Dec 24, 2024
1 parent f656fdf commit 14b2576
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 @@ -1216,8 +1216,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);
update_continuation_histories(ss, movedPiece, move.to_sq(), bonus * 1427 / 1024);
int bonus = (value >= beta) * 2048;
update_continuation_histories(ss, movedPiece, move.to_sq(), bonus);
}
}

Expand Down

0 comments on commit 14b2576

Please sign in to comment.