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_POSITION_OPTION_KEYSconstant

All host position options, checked by the builder.

Import it

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

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

Definition

const SUGOROKU_POSITION_OPTION_KEYS: string[] = Object.keys({
    position: true,
    onChange: true,
    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 SugorokuPositionOptions, boolean>)

Examples

import { SUGOROKU_POSITION_OPTION_KEYS } from "@johnmorrisdotca/sugoroku/element";
console.log(typeof SUGOROKU_POSITION_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.