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_EMBED_OPTION_KEYSconstant

The real mounted options, checked alongside builder coverage.

Import it

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

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

Definition

const SUGOROKU_EMBED_OPTION_KEYS: string[] = Object.keys({
    board: true,
    checkers: true,
    colours: true,
    theme: true,
    home: true,
    view: true,
    numbers: true,
    orientation: true,
    variant: true,
    rules: true,
    preset: true,
    seed: true,
    dice: true,
    computer: true,
    computerDelay: true,
    controls: true,
    drag: true,
    autoEnd: true,
    language: true,
    names: true,
    sound: true,
    match: true,
    onRoll: true,
    onMove: true,
    onTurn: true,
    onCube: true,
    onEnd: true,
} satisfies Record<keyof SugorokuMountOptions, boolean>)

Examples

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