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
| Name | Type | Description |
|---|---|---|
settings | Settings | 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)