45026831 / hh-plus-plus

12 stars 15 forks source link

Calculate actual probabilities to win a fight #8

Closed 0renge closed 3 years ago

0renge commented 3 years ago

I always thought I'd be more interested in the chance to win a season fight instead of some estimated leftover ego which ignores harmony for the calculations. Especially with the new simplified fighting system this became feasible and so I did just that. Hopefully the upcoming active skills can be incorporated.

My focus was more on the calculations and I've kept changes to the front-end to a minimum. For now I've left all simulation results untouched for easy comparison and sanity checking. In season I display the chance to win in the top-right corner (long opponent names may push it away). For league I've added detailed probabilities for all possible points as a tooltip to the simulation result.

Just like in the old simulation there is extensive logging for debugging which can be disabled (and imo should be in the release).

I'm curious for some feedback on my proposal.