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

DiceWarRolltype

One player's roll in a throw: their faces, and what they add up to.

Import it

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

Definition

type DiceWarRoll = {
    seat: number;
    faces: number[];
    total: number;
};

Members

NameTypeDescription
seatnumber
facesnumber[]
totalnumber

Examples

import type { DiceWarRoll } from "@johnmorrisdotca/korokoro";
const value: DiceWarRoll = { seat: 0, faces: [3, 4], total: 7 };
console.log(value.total);
7

What it prints (run when this page was built)

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