Skip to the content

Korokoroコロコロ

Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.

Korokoro describes something small rolling in Japanese. About the name

Contents

Reference · Rolls and exact odds

DIE_SIDESconstant

The dice the tray offers as buttons: the polyhedral set, the thirty-sided die, and the percentile die. Any other die is reached by notation.

Import it

import { DIE_SIDES } from "@johnmorrisdotca/korokoro";

Definition

const DIE_SIDES: readonly [4, 6, 8, 10, 12, 20, 30, 100] = [4, 6, 8, 10, 12, 20, 30, 100] as const

Examples

import { DIE_SIDES } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DIE_SIDES));
[
  '0', '1', '2',
  '3', '4', '5',
  '6', '7'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/korokoro 1.16.0.