Skip to the content

Hitotsu一つ

Match the colour or number, call with one card left, and play classic or party rules against computers or at a shared table.

Hitotsu is Japanese for one: the call with one card left. About the name

Contents

Reference · Card sounds

createCardSoundsfunction

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

Import it

import { createCardSounds } from "@johnmorrisdotca/hitotsu/card-sounds";

Definition

function createCardSounds(options?: CardSoundsOptions): CardSounds

Parameters

NameTypeDescription
options (optional)CardSoundsOptions

Native table, rules, sound or drawing settings; omitted fields retain their defaults.

Returns

CardSounds

The lazy sound handle; nothing is fetched until load or the first audible play.

Examples

import { createCardSounds } from "@johnmorrisdotca/hitotsu/card-sounds";

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hitotsu 1.4.0.