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

newMatchfunction

A match at 0 to 0.

Import it

import { newMatch } from "@johnmorrisdotca/sugoroku";

Definition

function newMatch(settings: Settings): Match

Parameters

NameTypeDescription
settingsSettings

The resolved variant and complete rules.

Returns

Match

A match at 0 to 0.

Examples

import { newMatch, settingsFor } from "@johnmorrisdotca/sugoroku";

const settings = settingsFor("backgammon",{points:5,cube:true});
console.log(newMatch(settings).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.