Reference · Rules, generation and deductions
STATUSESconstant
Names for the game lifecycle states.
Import it
import { STATUSES } from "@johnmorrisdotca/jirai";
Definition
const STATUSES: { readonly ready: "ready"; readonly playing: "playing"; readonly won: "won"; readonly lost: "lost"; } = { ready: "ready", playing: "playing", won: "won", lost: "lost" } as const
Members
| Name | Type | Description |
|---|---|---|
ready | "ready" | |
playing | "playing" | |
won | "won" | |
lost | "lost" |
Examples
import { STATUSES } from "@johnmorrisdotca/jirai";
console.log(STATUSES);{ ready: 'ready', playing: 'playing', won: 'won', lost: 'lost' }What it prints (run when this page was built)