gloomhaven

Probability evaluation of Gloomhaven attack modifier decks


License
Apache-2.0
Install
pip install gloomhaven==1.0.0

Documentation

Gloomhaven Damage Simulator

Attack modifier deck simulator and probability calculator for the popular board game and Steam game Gloomhaven. The probablity calculations are non-trivial given the re-shuffling logic.

Installation

To install base dependencies use:

poetry install

To install the additional dependencies for running the example notebooks use:

poetry install -E analyze

Example

Here's an example of the calculated probabilities for the base modifier deck:

Attack PDFs

Attack CDF Table

base_attack_1 base_attack_2 base_attack_3 base_attack_4 base_attack_5
0 0.3491 0.1228 0.0636 0.0704 0.0736
1 0.6407 0.3576 0.1115 0.0704 0.0736
2 0.9506 0.6484 0.3521 0.1191 0.0736
3 1.0000 0.8851 0.6341 0.3616 0.1228
4 1.0000 1.0000 0.8768 0.6456 0.3635
5 1.0000 1.0000 0.9266 0.8805 0.6453
6 1.0000 1.0000 1.0000 0.9289 0.8840
7 1.0000 1.0000 1.0000 0.9289 0.9310
8 1.0000 1.0000 1.0000 1.0000 0.9310
9 1.0000 1.0000 1.0000 1.0000 1.0000
10 1.0000 1.0000 1.0000 1.0000 1.0000

Attack Summary Stats Table

base_attack_1 base_attack_2 base_attack_3 base_attack_4 base_attack_5
min 0.000000 0.000000 0.000000 0.000000 0.000000
median 1.000000 2.000000 3.000000 4.000000 5.000000
max 3.000000 4.000000 6.000000 8.000000 10.000000
mean 1.059600 1.986100 3.035300 3.994600 4.970600
std 0.923652 1.192581 1.451229 1.769204 2.104466
mode 0.000000 2.000000 3.000000 4.000000 5.000000