Reference · Rules, games and records
NewGameOptionstype
Options for a new game.
Import it
import type { NewGameOptions } from "@johnmorrisdotca/sugoroku";
Definition
type NewGameOptions = {
crawford?: boolean;
score?: readonly [
number,
number
];
};
Members
| Name | Type | Description |
|---|---|---|
crawford (optional) | boolean | undefined | Whether it is the Crawford game of a match: played without the cube. |
score (optional) | readonly [number, number] | undefined | The score of the match so far, |
Examples
import type { NewGameOptions } from "@johnmorrisdotca/sugoroku";
const value: NewGameOptions = {crawford:false,score:[0,0]};
console.log(value);{ crawford: false, score: [ 0, 0 ] }What it prints (run when this page was built)