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

DiceWarMovetype

A move: the dice the people at the table rolled, by seat, such as { faces: { "0": [4] } }. The computers' dice are the seed's, so a table of computers is {}.

Import it

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

Definition

type DiceWarMove = {
    faces?: Record<string, readonly number[]>;
};

Members

NameTypeDescription
faces (optional)Record<string, readonly number[]> | undefined

Examples

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

What it prints (run when this page was built)

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