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

RollSoundtype

The tray's own sound: play for each throw, close when the tray goes.

Import it

import type { RollSound } from "@johnmorrisdotca/korokoro";

Definition

type RollSound = {
    play: PlaySound;
    close(): void;
};

Members

NameTypeDescription
playPlaySound
close(): void

Examples

import type { RollSound } from "@johnmorrisdotca/korokoro";
import { createRollSound } from "@johnmorrisdotca/korokoro";
const value: RollSound = createRollSound(undefined);
console.log(Object.keys(value));
[ 'play', 'close' ]

What it prints (run when this page was built)

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