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

trainSetNamefunction

The set's name, or null for a number that is no set offered.

Import it

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

Definition

function trainSetName(set: number): string | null

Parameters

NameTypeDescription
setnumber

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

Returns

string | null

The set's name, or null for a number that is no set offered.

Examples

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

console.log(trainSetName(9));
Double-nine

What it prints (run when this page was built)

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