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 · SVG boards and notation

SUGOROKU_COLOUR_NAMESconstant

The names of the colours, as the custom properties spell them (--sg- and the name in kebab case).

Import it

import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";

Definition

const SUGOROKU_COLOUR_NAMES: readonly (keyof SugorokuColours)[] = [
    "frame",
    "felt",
    "pointA",
    "pointB",
    "bar",
    "tray",
    "white",
    "whiteEdge",
    "black",
    "blackEdge",
    "number",
    "selected",
    "target",
    "die",
    "pip",
    "cube",
    "cubeInk",
]

Examples

import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";
console.log(SUGOROKU_COLOUR_NAMES);
[
  'frame',   'felt',
  'pointA',  'pointB',
  'bar',     'tray',
  'white',   'whiteEdge',
  'black',   'blackEdge',
  'number',  'selected',
  'target',  'die',
  'pip',     'cube',
  'cubeInk'
]

What it prints (run when this page was built)

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