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

dieNamefunction

What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice with the same name are the same die.

Import it

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

Definition

function dieName(group: DiceGroup): string

Parameters

NameTypeDescription
groupDiceGroup

One kind of dice and its rules.

Returns

string

What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice with the same name are the same die.

Examples

import { dieName } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(dieName(parseNotation("4dF")!));
dF

What it prints (run when this page was built)

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