Skip to content

Commit

Permalink
Make reductionScale smoother
Browse files Browse the repository at this point in the history
Making the second part of the formula smoother, changing it to a linear
function, increasing steadily as reductionScale increases and at the
same time, it should be a little bit simpler, therefore the
simplification bounds.

Passed STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 83040 W: 21493 L: 21322 D: 40225
Ptnml(0-2): 252, 9848, 21209, 9899, 312
https://tests.stockfishchess.org/tests/view/6762145486d5ee47d9543242

Passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 230124 W: 58485 L: 58478 D: 113161
Ptnml(0-2): 175, 25620, 63484, 25589, 194
https://tests.stockfishchess.org/tests/view/6762d4ef86d5ee47d9543367

closes #5725

Bench: 1204658
  • Loading branch information
FauziAkram authored and Disservin committed Dec 22, 2024
1 parent 6075e78 commit a04b072
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 @@ -1703,7 +1703,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)

Depth Search::Worker::reduction(bool i, Depth d, int mn, int delta) const {
int reductionScale = reductions[d] * reductions[mn];
return reductionScale - delta * 814 / rootDelta + (!i && reductionScale > 1423) * 1135 + 1304;
return reductionScale - delta * 814 / rootDelta + !i * reductionScale / 3 + 1304;
}

// elapsed() returns the time elapsed since the search started. If the
Expand Down

0 comments on commit a04b072

Please sign in to comment.