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

countsSuccessesfunction

Whether a kind of dice is counted for successes, not added up.

Import it

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

Definition

function countsSuccesses(group: DiceGroup): boolean

Parameters

NameTypeDescription
groupDiceGroup

One kind of dice and its rules.

Returns

boolean

Whether a kind of dice is counted for successes, not added up.

Examples

import { countsSuccesses } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(countsSuccesses(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.