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
| Name | Type | Description |
|---|---|---|
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);80What it prints (run when this page was built)