FIRST_PLAYERSconstant
The supported opening colours and random opener choice.
Import it
import { FIRST_PLAYERS } from "@johnmorrisdotca/narabe";
Definition
const FIRST_PLAYERS: { readonly black: "black"; readonly white: "white"; readonly random: "random"; } = {
black: "black",
white: "white",
random: "random",
} as const satisfies Record<FirstPlayer, FirstPlayer>
Members
| Name | Type | Description |
|---|---|---|
black | "black" | |
white | "white" | |
random | "random" |
Examples
import { FIRST_PLAYERS } from "@johnmorrisdotca/narabe";
console.log(FIRST_PLAYERS);{ black: 'black', white: 'white', random: 'random' }What it prints (run when this page was built)