Reference · Rolls and exact odds
DiceWarMovetype
A move: the dice the people at the table rolled, by seat, such as { faces: { "0": [4] } }. The computers' dice are the seed's, so a table of computers is {}.
Import it
import type { DiceWarMove } from "@johnmorrisdotca/korokoro";
Definition
type DiceWarMove = {
faces?: Record<string, readonly number[]>;
};
Members
| Name | Type | Description |
|---|---|---|
faces (optional) | Record<string, readonly number[]> | undefined |
Examples
import type { DiceWarMove } from "@johnmorrisdotca/korokoro";
const value: DiceWarMove = { faces: { "0": [3, 4] } };
console.log(value.faces);{ '0': [ 3, 4 ] }What it prints (run when this page was built)