Reference · Rules, games and records
Cubetype
The doubling cube: what it shows, and who may turn it (null while it stands in the middle, for either).
Import it
import type { Cube } from "@johnmorrisdotca/sugoroku";
Definition
type Cube = {
readonly value: number;
readonly owner: Side | null;
};
Members
| Name | Type | Description |
|---|---|---|
value | number | |
owner | Side | null |
Examples
import type { Cube } from "@johnmorrisdotca/sugoroku";
const value: Cube = {value:1,owner:null};
console.log(value);{ value: 1, owner: null }What it prints (run when this page was built)