A small static GitHub Pages tool for simulating Okaun coin flips, including Krark's Thumb replacement flips, repeated flip runs, loss-target runs, and Okaun power/toughness growth.
- Flip once, twice, or a chosen number of times.
- Flip until a chosen number of losses.
- Toggle Okaun in play to calculate final power/toughness.
- Toggle Krark's Thumbs and choose the number of thumbs in play.
- Show coin animations and occasional Okaun easter eggs when power gets high.
The app uses crypto.getRandomValues for coin flips. This is the browser's cryptographically secure random number generator and is a better fit than Math.random() or the old seeded random library.
Okaun power and toughness are calculated with native JavaScript BigInt, so very large integer values stay exact. There is no fixed numeric maximum like normal JavaScript Number; practical limits are memory, time, and how much text the browser can render.
There are no runtime JavaScript library dependencies. The app uses:
- Native DOM APIs instead of jQuery.
crypto.getRandomValuesinstead of jsrand.BigIntinstead of big.js.
Run a local static server from the repo root:
python -m http.server 8050 --bind 127.0.0.1Then open:
http://127.0.0.1:8050/
Run the smoke checks:
npm testThe smoke test verifies that the app loads the expected files, no longer loads the old libraries, and still wires the main controls.