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
| Name | Type | Description |
|---|---|---|
spec | VariantSpec | 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));0What it prints (run when this page was built)