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);chainWhat it prints (run when this page was built)