Reference · Rules, games and records
VariantKeytype
THE VARIANTS, AS ROWS OF SETTINGS. Nothing in the engine branches on a variant's name: it reads the row. A new game on the same board is a new row.
Import it
import type { VariantKey } from "@johnmorrisdotca/sugoroku";
Definition
type VariantKey = "backgammon" | "backgammon-race" | "anti-backgammon" | "nackgammon" | "long-gammon" | "hypergammon" | "tabula";
Examples
import type { VariantKey } from "@johnmorrisdotca/sugoroku";
const value: VariantKey = "tabula";
console.log(value);tabulaWhat it prints (run when this page was built)