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_DEFAULT_OPTIONSconstant

The options a table opens on: every round, one double at a time, and the Mexican Train open from the start.

Import it

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

Definition

const TRAIN_DEFAULT_OPTIONS: TrainOptions = { length: "full", doubles: "one", mexican: "any" }

Members

NameTypeDescription
lengthTrainLength
doublesDoublesRule
mexicanMexicanStart

Examples

import { TRAIN_DEFAULT_OPTIONS } from "@johnmorrisdotca/domino";
console.log(TRAIN_DEFAULT_OPTIONS);
{ length: 'full', doubles: 'one', mexican: 'any' }

What it prints (run when this page was built)

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