Install dependencies with pip3 install -r requirements.txt
.
- error handling
- invalid cards names
- integrate setuptools
- more math
Most of this toolkit relies on math like this:
What is the chance to draw at least
2 buffs
from a deck containing4 buffs
afterturn 2
aftergoing first
.
N = 30 # Total population from which to draw
m = 4 # Number of successes in deck
n = 5 # Number of draws
k = 1 # Successes desired
import scipy.stats as ss
hpd = ss.hypergeom(N,m,n)
p = hpd.cdf(k)
print (1-p)
The approach above yields 11.877%
chance to draw after turn 2