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

Cubetype

The doubling cube: what it shows, and who may turn it (null while it stands in the middle, for either).

Import it

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

Definition

type Cube = {
    readonly value: number;
    readonly owner: Side | null;
};

Members

NameTypeDescription
valuenumber
ownerSide | null

Examples

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

const value: Cube = {value:1,owner:null};
console.log(value);
{ value: 1, owner: null }

What it prints (run when this page was built)

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