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

PlaySoundtype

Anything that makes a roll's sound: the built-in one, or a page's own.

Import it

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

Definition

type PlaySound = (thrown: SoundThrow) => void;

Examples

import type { PlaySound } from "@johnmorrisdotca/korokoro";
const value: PlaySound = (thrown) => console.log(thrown.dice);
console.log(typeof value);
function

What it prints (run when this page was built)

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