Skip to the content

Sugoroku双六

Play backgammon and its relatives with native rules, cube and match scoring, seeded dice and replayable records.

Sugoroku is the Japanese name 双六 for games of tables. About the name

Contents

Reference · Rules, games and records

VARIANT_KEYSconstant

The variants' keys, in the order the demo lists them.

Import it

import { VARIANT_KEYS } from "@johnmorrisdotca/sugoroku";

Definition

const VARIANT_KEYS: readonly VariantKey[] = [
    "backgammon",
    "backgammon-race",
    "anti-backgammon",
    "nackgammon",
    "long-gammon",
    "hypergammon",
    "tabula",
]

Examples

import { VARIANT_KEYS } from "@johnmorrisdotca/sugoroku";
console.log(VARIANT_KEYS);
[
  'backgammon',
  'backgammon-race',
  'anti-backgammon',
  'nackgammon',
  'long-gammon',
  'hypergammon',
  'tabula'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/sugoroku 1.1.1.