Korokoro documentation
Korokoro コロコロ — Dice roller with notation and exact odds
Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.
Install
npm install @johnmorrisdotca/korokoro
Start here
Entry points
| Import it | What it is | Size |
|---|---|---|
@johnmorrisdotca/React components · 2 exports | 106.4 kB | |
@johnmorrisdotca/Embedded roller and die · 6 exports | 97.2 kB | |
@johnmorrisdotca/Automatic tag registration · 6 exports | The custom element, registered by being imported: | 97.2 kB |
@johnmorrisdotca/Vue components · 1 exports | 110.2 kB | |
@johnmorrisdotca/Recorded dice sounds · 2 exports | 22.8 kB | |
@johnmorrisdotca/Rolls and exact odds · 237 exports | Korokoro コロコロ: fair dice, exact odds, and a history that remembers. | 101.0 kB |
Guides
How-to
- Roll with notationValidate a roll, combine dice, keep selected faces and use a game preset.
- Exact oddsRead a distribution, threshold chances and exact integer outcome counts.
- Keep and share rollsUse reproducible sources, round-trip a shared roll and save portable history.
- Custom and loaded diceGive faces words and values, or weight a numbered die and inspect its fairness.
- Embed a trayMount the native tray, use a custom element or iframe and handle host messages.
Explanation
- Design and entry pointsUnderstand the pure engine, optional browser layer and language or storage boundaries.
- How the dice and odds workRead the seeded generator specification and the rules behind reproducible exact calculations.