Home▸Board Games & Game Mathematics▸Dice & Probability (2D)

🎲 Dice & Probability (2D)

2D Canvas dice-sum probability lab: roll n dice with s sides, compare the exact convolution PMF against a live empirical histogram and Gaussian overlay, and watch casino bet expected values update in real time.

Board Games & Game Mathematics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-dice-probability ↗ Open standalone

This 2D companion drives the same exact-convolution dice-sum maths as the 3D version through a plain Canvas view built for reading the statistics rather than watching a WebGL scene: a side panel sets the number of dice, sides per die, and auto-roll speed, while the canvas stack shows the currently rolled faces above a live histogram comparing the empirical distribution against the exact theoretical PMF and an optional Gaussian overlay, with a casino-odds table for two six-sided dice updating alongside the live mean, variance and mode readouts.

⚙ Under the hood

2D dice-sum probability lab: exact n-fold convolution PMF, live empirical histogram, Gaussian overlay and casino bet expected values, all on Canvas 2D.

dice probabilitysum of dice distributioncentral limit theoremlaw of large numbersexpected valuecasino probability

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)