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 · Board and position elements

SUGOROKU_DRAW_OPTION_KEYSconstant

Native draw keys, checked by the shared builder.

Import it

import { SUGOROKU_DRAW_OPTION_KEYS } from "@johnmorrisdotca/sugoroku/element";

Also exported from: @johnmorrisdotca/sugoroku/element/define

Definition

const SUGOROKU_DRAW_OPTION_KEYS: string[] = Object.keys({
    variant: true,
    view: true,
    home: true,
    orientation: true,
    numbers: true,
    board: true,
    checkers: true,
    colours: true,
    theme: true,
    dice: true,
    cube: true,
    highlight: true,
    label: true,
    style: true,
} satisfies Record<keyof SugorokuDrawOptions, boolean>)

Examples

import { SUGOROKU_DRAW_OPTION_KEYS } from "@johnmorrisdotca/sugoroku/element";
console.log(typeof SUGOROKU_DRAW_OPTION_KEYS); // object
object

What it prints (run when this page was built)

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