Skip to the content

Dominoドミノ

Deal seeded dominoes, play Mexican Train with native rules and computers, and replay a saved game.

Domino is the Japanese borrowed word ドミノ for dominoes. About the name

Contents

Reference · Tiles, Mexican Train and replay

everyTilefunction

Every tile of a set, double-blank to its highest double, in order.

Import it

import { everyTile } from "@johnmorrisdotca/domino";

Definition

function everyTile(set: number): Domino[]

Parameters

NameTypeDescription
setnumber

The highest double of the supported set: 9, 12 or 15.

Returns

number[]

Every tile of a set, double-blank to its highest double, in order.

Examples

import { everyTile } from "@johnmorrisdotca/domino";

console.log(everyTile(9).length);
55

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/domino 1.1.4.