Reference · Rolls and exact odds
dieNamefunction
What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom
d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice
with the same name are the same die.
Import it
import { dieName } from "@johnmorrisdotca/korokoro";
Definition
function dieName(group: DiceGroup): string
Parameters
| Name | Type | Description |
|---|---|---|
group | DiceGroup | One kind of dice and its rules. |
Returns
string
What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice with the same name are the same die.
Examples
import { dieName } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(dieName(parseNotation("4dF")!));dFWhat it prints (run when this page was built)