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

startReservefunction

How many checkers each side begins off the board, to be entered with the dice.

Import it

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

Definition

function startReserve(spec: VariantSpec): number

Parameters

NameTypeDescription
specVariantSpec

The native variant specification.

Returns

number

How many checkers each side begins off the board, to be entered with the dice.

Examples

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

const settings = settingsFor("backgammon",{points:5,cube:true});
const spec = settings.variant;
console.log(startReserve(spec));
0

What it prints (run when this page was built)

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