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_MEXICANconstant

The unrestricted and own-train-first Mexican Train opening choices.

Import it

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

Definition

const TRAIN_MEXICAN: { readonly any: "any"; readonly ownFirst: "ownFirst"; } = { any: "any", ownFirst: "ownFirst" } as const satisfies Record<MexicanStart, MexicanStart>

Members

NameTypeDescription
any"any"
ownFirst"ownFirst"

Examples

import { TRAIN_MEXICAN } from "@johnmorrisdotca/domino";
console.log(TRAIN_MEXICAN);
{ any: 'any', ownFirst: 'ownFirst' }

What it prints (run when this page was built)

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