Reference · Rolls and exact odds
mathGroupsfunction
Which kinds of dice a formula uses, in the order it names them.
Import it
import { mathGroups } from "@johnmorrisdotca/korokoro";
Definition
function mathGroups(node: MathNode): number[]
Parameters
| Name | Type | Description |
|---|---|---|
node | MathNode | The arithmetic expression tree. |
Returns
number[]
Which kinds of dice a formula uses, in the order it names them.
Examples
import { mathGroups } from "@johnmorrisdotca/korokoro";
console.log(mathGroups({ kind: "dice", group: 0 }));[ 0 ]What it prints (run when this page was built)