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

NewGameOptionstype

Options for a new game.

Import it

import type { NewGameOptions } from "@johnmorrisdotca/sugoroku";

Definition

type NewGameOptions = {
    crawford?: boolean;
    score?: readonly [
        number,
        number
    ];
};

Members

NameTypeDescription
crawford (optional)boolean | undefined

Whether it is the Crawford game of a match: played without the cube.

score (optional)readonly [number, number] | undefined

The score of the match so far, [white, black]. Default 0 to 0.

Examples

import type { NewGameOptions } from "@johnmorrisdotca/sugoroku";

const value: NewGameOptions = {crawford:false,score:[0,0]};
console.log(value);
{ crawford: false, score: [ 0, 0 ] }

What it prints (run when this page was built)

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