FirstPlayertype
Who opens. random is resolved once when the game is created — the engine
stays pure by taking the roll as an argument, see resolveOpener.
Import it
import type { FirstPlayer } from "@johnmorrisdotca/narabe";
Definition
type FirstPlayer = Stone | "random";
Examples
import type { FirstPlayer } from "@johnmorrisdotca/narabe";
const value: FirstPlayer = "random";
console.log(value);randomWhat it prints (run when this page was built)