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

tileOffunction

The tile with these two ends, whichever order they are given in.

Import it

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

Definition

function tileOf(a: number, b: number): Domino

Parameters

NameTypeDescription
anumber

The first pip value, from 0 to the set maximum.

bnumber

The second pip value, from 0 to the set maximum.

Returns

number

The tile with these two ends, whichever order they are given in.

Examples

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

console.log(tileOf(6,4));
70

What it prints (run when this page was built)

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