Reference · Views, replay and player
GameModetype
Selects one of the five rule modules supported by this package.
Import it
import type { GameMode } from "@johnmorrisdotca/gunjin";
Definition
type GameMode = "hidden-hasami" | "luzhanqi-mini" | "salpakan" | "stratego-lite" | "gunjin-shogi";
Examples
import type { GameMode } from "@johnmorrisdotca/gunjin";
const value: GameMode = "hidden-hasami";
console.log(value);hidden-hasamiWhat it prints (run when this page was built)