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 · Cards, hands and piles

HandTurnOptionstype

How a hand's cards are turned face down or face up.

Import it

import type { HandTurnOptions } from "@johnmorrisdotca/toranpu/element";

Also exported from: @johnmorrisdotca/toranpu/element/define

Definition

type HandTurnOptions = {
    oneByOne?: boolean;
    gap?: number;
};

Members

NameTypeDescription
oneByOne (optional)boolean | undefined

One card after another, from the first, rather than all at once. Unless said, all at once.

gap (optional)number | undefined

Milliseconds between one card and the next, one by one. Unless said, 110.

Examples

import type { HandTurnOptions } from "@johnmorrisdotca/toranpu/element";

const value: HandTurnOptions = { oneByOne: true, gap: 80 };
console.log(value.gap);
80

What it prints (run when this page was built)

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