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

RoundEndingtype

Why a round ended: somebody played their last tile, or nobody could play and nothing was left to draw.

Import it

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

Definition

type RoundEnding = "domino" | "blocked";

Examples

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

const value: RoundEnding = "domino";
console.log(value);
domino

What it prints (run when this page was built)

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