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

DICE_WAR_LIMITSconstant

What a table may be set up with.

Import it

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

Definition

const DICE_WAR_LIMITS: { readonly fewestPlayers: 2; readonly mostPlayers: 8; readonly mostDice: 10; readonly mostPoints: 100; readonly mostRounds: 200; readonly mostWars: 100; } = {
    fewestPlayers: 2,
    mostPlayers: 8,
    mostDice: MAX_DICE,
    mostPoints: 100,
    mostRounds: 200,
    mostWars: 100,
} as const

Members

NameTypeDescription
fewestPlayers2

The fewest players.

mostPlayers8

The most players.

mostDice10

The most dice each player rolls.

mostPoints100

The most points a game may be played to.

mostRounds200

The most rounds a game may last.

mostWars100

The most wars one round may go through before it is called off with nobody scoring: with two or more sides to a die it is never reached in practice.

Examples

import { DICE_WAR_LIMITS } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DICE_WAR_LIMITS));
[
  'fewestPlayers',
  'mostPlayers',
  'mostDice',
  'mostPoints',
  'mostRounds',
  'mostWars'
]

What it prints (run when this page was built)

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