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 · Recorded sounds

TILE_SOUND_DATAconstant

The tile sounds, recorded: tiles shuffled, drawn, laid and knocked on the table, as base64 AAC (.m4a). From Kenney's Casino Audio pack, CC0; see CREDITS.md. Written by scripts/sounds.mjs from the files in ./sounds, never by hand. createTileSounds loads this module only when a sound is first played, so a page that stays silent never downloads it.

Import it

import { TILE_SOUND_DATA } from "@johnmorrisdotca/domino/sounds";

Definition

const TILE_SOUND_DATA: Readonly<Record<TileSoundFile, string>>

Members

NameTypeDescription
draw-1string
draw-2string
knock-1string
knock-2string
lay-1string
lay-2string
lay-3string
shuffle-1string
shuffle-2string

Examples

import { TILE_SOUND_DATA } from "@johnmorrisdotca/domino/sounds";
console.log(Object.keys(TILE_SOUND_DATA));
[
  'draw-1',    'draw-2',
  'knock-1',   'knock-2',
  'lay-1',     'lay-2',
  'lay-3',     'shuffle-1',
  'shuffle-2'
]

What it prints (run when this page was built)

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