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

CardOrdertype

How a hand's cards are laid out: as they were dealt, by rank, grouped by suit, or the number cards apart from the face cards.

Import it

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

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

Definition

type CardOrder = "dealt" | "rank" | "suit" | "face";

Examples

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

const value: CardOrder = "rank";
console.log(value);
rank

What it prints (run when this page was built)

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