Skip to content

RejectKid/RejectKid.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Okaun Coin Flipping

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.

What It Does

  • 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.

Randomness

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.

Big Numbers

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.

Dependencies

There are no runtime JavaScript library dependencies. The app uses:

  • Native DOM APIs instead of jQuery.
  • crypto.getRandomValues instead of jsrand.
  • BigInt instead of big.js.

Local Development

Run a local static server from the repo root:

python -m http.server 8050 --bind 127.0.0.1

Then open:

http://127.0.0.1:8050/

Tests

Run the smoke checks:

npm test

The smoke test verifies that the app loads the expected files, no longer loads the old libraries, and still wires the main controls.

About

CoinFlipMTG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors