Bathbot
Bathbot copied to clipboard
use better estimated combo for simulate scores with misses
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)