Skip to content

Instantly share code, notes, and snippets.

@qguv
Created December 17, 2018 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qguv/fec5a236c4455b81afad9a536d0235dd to your computer and use it in GitHub Desktop.
Save qguv/fec5a236c4455b81afad9a536d0235dd to your computer and use it in GitHub Desktop.
Calculate chance of success in an Arkham attack roll using brute force
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qguv
Copy link
Author

qguv commented Dec 17, 2018

Github will display the interpreted Jupyter notebook on the desktop site. For mobile and noscript users, here's the output:

  [- CURSED -]   |   [- NORMAL -]   |  [- BLESSED -]
                 |                  |
      successes  |       successes  |       successes
dice  1   2   3  | dice  1   2   3  | dice  1   2   3
  1  17%  -   -  |   1  33%  -   -  |   1  50%  -   - 
  2  31%  3%  -  |   2  56% 11%  -  |   2  75% 25%  - 
  3  42%  7%  0% |   3  70% 26%  4% |   3  88% 50% 12%
  4  52% 13%  2% |   4  80% 41% 11% |   4  94% 69% 31%
  5  60% 20%  4% |   5  87% 54% 21% |   5  97% 81% 50%
  6  67% 26%  6% |   6  91% 65% 32% |   6  98% 89% 66%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment