Bathbot icon indicating copy to clipboard operation
Bathbot copied to clipboard

use better estimated combo for simulate scores with misses

Open Bathbot-Helper opened this issue 10 months ago • 0 comments

a simulated score with misses should show as the combo the expected value for the longest combo if the misses are distributed randomly, rather than the max combo of the map. It can be calculated like this:

def expected_longest_combo(max_combo, misses):
    return round(max_combo/(misses+1) * sum(1/i for i in range(1, misses+2)))

(derivation here)

Original message by @120cell

Bathbot-Helper avatar Feb 24 '25 18:02 Bathbot-Helper