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 · Deck tools

RankDisplaytype

How a rank is written: A, 2…10, J, Q, K, and in a sentence.

Import it

import type { RankDisplay } from "@johnmorrisdotca/toranpu/deck";

Definition

type RankDisplay = {
    short: string;
    name: string;
};

Members

NameTypeDescription
shortstring
namestring

Examples

import type { RankDisplay } from "@johnmorrisdotca/toranpu/deck";
import { RANK_DISPLAY } from "@johnmorrisdotca/toranpu/deck";

const value: RankDisplay = RANK_DISPLAY[1];
console.log(value.short);
A

What it prints (run when this page was built)

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