Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Recorded sounds

CARD_SOUND_DATAconstant

The card sounds, recorded: cards dealt, turned over, played, shuffled, gathered and fanned, as base64 AAC (.m4a). From Kenney's Casino Audio pack, CC0; see docs/credits.md. Written by scripts/sounds.mjs from the files in ./sounds, never by hand. createCardSounds loads this module only when a sound is first played, so a page that stays silent never downloads it.

Import it

import { CARD_SOUND_DATA } from "@johnmorrisdotca/toranpu/sounds";

Definition

const CARD_SOUND_DATA: Readonly<Record<CardSoundFile, string>>

Members

NameTypeDescription
deal-1string
deal-2string
deal-3string
deal-4string
fan-1string
flip-1string
flip-2string
gather-1string
gather-2string
play-1string
play-2string
play-3string
shuffle-1string

Examples

import { CARD_SOUND_DATA } from "@johnmorrisdotca/toranpu/sounds";
console.log(Object.keys(CARD_SOUND_DATA));
[
  'deal-1',    'deal-2',
  'deal-3',    'deal-4',
  'fan-1',     'flip-1',
  'flip-2',    'gather-1',
  'gather-2',  'play-1',
  'play-2',    'play-3',
  'shuffle-1'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.