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

PlayTileSoundOptionstype

How one sound is played.

Import it

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

Definition

type PlayTileSoundOptions = {
    count?: number;
    gap?: number;
    delay?: number;
};

Members

NameTypeDescription
count (optional)number | undefined

How many tiles: draw with 7 is seven tiles taken one after another (heard as at most MOST_SOUNDS_AT_ONCE). Unless said, one.

gap (optional)number | undefined

Milliseconds between one tile's sound and the next. Unless said, 85.

delay (optional)number | undefined

Milliseconds to wait before the first. Unless said, none.

Examples

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

const value: PlayTileSoundOptions = {count:3,gap:85};
console.log(value);
{ count: 3, gap: 85 }

What it prints (run when this page was built)

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