Reference · Rolls and exact odds
DiceWarRolltype
One player's roll in a throw: their faces, and what they add up to.
Import it
import type { DiceWarRoll } from "@johnmorrisdotca/korokoro";
Definition
type DiceWarRoll = {
seat: number;
faces: number[];
total: number;
};
Members
| Name | Type | Description |
|---|---|---|
seat | number | |
faces | number[] | |
total | number |
Examples
import type { DiceWarRoll } from "@johnmorrisdotca/korokoro";
const value: DiceWarRoll = { seat: 0, faces: [3, 4], total: 7 };
console.log(value.total);7What it prints (run when this page was built)