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

DieStatustype

One die as it was thrown. kept counts towards the total, dropped was left out by keep or drop, and rerolled was thrown again: the die after it is its replacement.

Import it

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

Definition

type DieStatus = "kept" | "dropped" | "rerolled";

Examples

import type { DieStatus } from "@johnmorrisdotca/korokoro";
const value: DieStatus = "kept";
console.log(value);
kept

What it prints (run when this page was built)

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