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_LENGTHSconstant

The full and short round-count choices for a game.

Import it

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

Definition

const TRAIN_LENGTHS: { readonly full: "full"; readonly short: "short"; } = { full: "full", short: "short" } as const satisfies Record<TrainLength, TrainLength>

Members

NameTypeDescription
full"full"
short"short"

Examples

import { TRAIN_LENGTHS } from "@johnmorrisdotca/domino";
console.log(TRAIN_LENGTHS);
{ full: 'full', short: 'short' }

What it prints (run when this page was built)

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