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

TrainOptionstype

What the set-up chose, beyond the set and the players.

Import it

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

Definition

type TrainOptions = {
    length: TrainLength;
    doubles: DoublesRule;
    mexican: MexicanStart;
};

Members

NameTypeDescription
lengthTrainLength
doublesDoublesRule
mexicanMexicanStart

Examples

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

const value: TrainOptions = {length:"short",doubles:"one",mexican:"any"};
console.log(value);
{ length: 'short', 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.