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 · Sound controls

createTileSoundsfunction

A table's tile sounds. Nothing is fetched and no audio context is made until the first sound.

Import it

import { createTileSounds } from "@johnmorrisdotca/domino/tile-sounds";

Definition

function createTileSounds(options?: TileSoundsOptions): TileSounds

Parameters

NameTypeDescription
options (optional)TileSoundsOptions

Native sound-player choices or Mexican Train house rules specified by the signature.

Returns

TileSounds

A lazy sound-player handle; close it when the table is removed.

Examples

import { createTileSounds } from "@johnmorrisdotca/domino/tile-sounds";

console.log(createTileSounds({muted:true,window:null}).muted);
true

What it prints (run when this page was built)

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