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

LaidDominotype

A domino laid in a train, turned so its from end touches the train: from * 16 + to.

Import it

import type { LaidDomino } from "@johnmorrisdotca/domino";

Definition

type LaidDomino = number;

Examples

import type { LaidDomino } from "@johnmorrisdotca/domino";
import { laidAgainst, tileOf } from "@johnmorrisdotca/domino";

const value: LaidDomino = laidAgainst(tileOf(4,6),6);
console.log(value);
100

What it prints (run when this page was built)

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