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

playsByNewRulesfunction

Whether a kind of dice is played by a rule added in 1.7.0, one that changes what it can total: a reroll or an explosion at a comparison, compounding or penetrating dice, min or max, or counted successes. Marks (cs, cf) and a sort change nothing about the total and are not among them.

Import it

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

Definition

function playsByNewRules(g: DiceGroup): boolean

Parameters

NameTypeDescription
gDiceGroup

One kind of dice and its rules.

Returns

boolean

Whether a kind of dice is played by a rule added in 1.7.0, one that changes what it can total: a reroll or an explosion at a comparison, compounding or penetrating dice, min or max, or counted successes. Marks (cs, cf) and a sort change nothing about the total and are not among them.

Examples

import { playsByNewRules } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(playsByNewRules(parseNotation("3d6>=5")!));
true

What it prints (run when this page was built)

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