Reference · Tiles, Mexican Train and replay
roundsForfunction
How many rounds a game of this length plays with this set: one per double, top to blank, or the first half of them.
Import it
import { roundsFor } from "@johnmorrisdotca/domino";
Definition
function roundsFor(set: number, length: TrainLength): number
Parameters
| Name | Type | Description |
|---|---|---|
set | number | The highest double of the supported set: 9, 12 or 15. |
length | TrainLength | Full descending-double rounds or the short half-length game. |
Returns
number
How many rounds a game of this length plays with this set: one per double, top to blank, or the first half of them.
Examples
import { roundsFor } from "@johnmorrisdotca/domino";
console.log(roundsFor(9,"short"));5What it prints (run when this page was built)