Skip to content

Commit

Permalink
Simplify the recently introduced ply-based cmh bonus factor.
Browse files Browse the repository at this point in the history
Replace it with a constant which is an approximation of the limit of the factor.

STC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 120064 W: 30967 L: 30836 D: 58261
Ptnml(0-2): 421, 14238, 30608, 14319, 446
https://tests.stockfishchess.org/tests/view/6649d146b8fa20e74c39f4ad

LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 53856 W: 13719 L: 13530 D: 26607
Ptnml(0-2): 31, 5879, 14922, 6062, 34
https://tests.stockfishchess.org/tests/view/664a027fae57c1758ac5b4ee

closes #5270

Bench: 1355618
  • Loading branch information
locutus2 authored and vondele committed May 21, 2024
1 parent 4a66a7c commit 81e21a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ void update_all_stats(const Position& pos,
// by moves at ply -1, -2, -3, -4, and -6 with current move.
void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) {

bonus = bonus * (112 * ss->ply + 136) / (159 * ss->ply + 124);
bonus = bonus * 45 / 64;

for (int i : {1, 2, 3, 4, 6})
{
Expand Down

0 comments on commit 81e21a6

Please sign in to comment.