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

TRAIN_DOUBLESconstant

The one-double and chained-double house-rule choices.

Import it

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

Definition

const TRAIN_DOUBLES: { readonly one: "one"; readonly chain: "chain"; } = { one: "one", chain: "chain" } as const satisfies Record<DoublesRule, DoublesRule>

Members

NameTypeDescription
one"one"
chain"chain"

Examples

import { TRAIN_DOUBLES } from "@johnmorrisdotca/domino";
console.log(TRAIN_DOUBLES);
{ one: 'one', chain: 'chain' }

What it prints (run when this page was built)

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