sapai icon indicating copy to clipboard operation
sapai copied to clipboard

Exact Probability of Battles with Random Components

Open manny405 opened this issue 2 years ago • 1 comments

Presently, the outcome of a battle is win lose or draw. However, outcomes of battle's with random components, for example a mosquito versus a pig(3,1)+otter(1,2) team, can have multiple outcomes. The only way to evaluate these outcomes presently is bootstrapping (i.e. running the same battle many times and collecting statistics). Instead, all possible combinations of outcomes, or battle paths, could be evaluated at a single time to return the exact probabilities of the battle's outcome.

Implementation for this has already started in effects.py. This needs to be connected and built out in battle.py. I am imagining this as being controlled by an argument to the battle class which will turn the feature on or off.

manny405 avatar Mar 28 '22 16:03 manny405