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

PlayCardSoundOptionstype

How one sound is played.

Import it

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

Definition

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

Members

NameTypeDescription
count (optional)number | undefined

How many cards: deal with 13 is thirteen cards dealt one after another (heard as at most MOST_SOUNDS_AT_ONCE). Unless said, one.

gap (optional)number | undefined

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

delay (optional)number | undefined

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

Examples

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


const value: PlayCardSoundOptions = { count: 3, gap: 80, delay: 20 };
console.log(value.count);
3

What it prints (run when this page was built)

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