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

LoadedPresettype

Loaded dice, kept in one place and in plain sight. Korokoro's own dice are fair. These are not, they say so, and nothing here can make one pass for a fair die: a loaded die's weights are part of its name (d6{6:3}), of its spec, of every roll it makes and of every link to one.

Import it

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

Definition

type LoadedPreset = {
    id: string;
    name: string;
    notation: string;
    says: string;
};

Members

NameTypeDescription
idstring

A short id, for code and links.

namestring

What the die is called.

notationstring

The dice, as notation.

saysstring

What it does, in a line.

Examples

import type { LoadedPreset } from "@johnmorrisdotca/korokoro";
import { LOADED_PRESETS } from "@johnmorrisdotca/korokoro";
const value: LoadedPreset = LOADED_PRESETS[0]!;
console.log(value.notation);
1d6{6:3}

What it prints (run when this page was built)

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