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

presetSpecfunction

A preset's dice, as a spec.

Import it

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

Definition

function presetSpec(preset: Preset): RollSpec

Parameters

NameTypeDescription
presetPreset

The game preset whose dice and reading are used.

Returns

RollSpec

A preset's dice, as a spec.

Examples

import { presetSpec } from "@johnmorrisdotca/korokoro";
import { formatNotation, getPreset } from "@johnmorrisdotca/korokoro";
const preset = getPreset("cho-han")!;
console.log(formatNotation(presetSpec(preset)));
2d6

What it prints (run when this page was built)

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