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

DoublesRuletype

How a double is dealt with, the table's one house rule about them.

  • one (the default, as most published rules play it): a double must be covered before anything else is played anywhere, and whoever laid it lays again to cover it.
  • chain: after laying a double you may lay another double in the same turn, anywhere one fits, before covering; then every double left open is covered, the last laid first, before anything else is played.

Import it

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

Definition

type DoublesRule = "one" | "chain";

Examples

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

const value: DoublesRule = "chain";
console.log(value);
chain

What it prints (run when this page was built)

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