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 · Games and state

CardRanktype

The deck's rank, ace low: 1 is the ace, 11 the jack, 12 the queen, 13 the king. Each game orders them its own way.

Import it

import type { CardRank } from "@johnmorrisdotca/toranpu";

Definition

type CardRank = Rank;

Examples

import type { CardRank } from "@johnmorrisdotca/toranpu";

const value: CardRank = 1;
console.log(value);
1

What it prints (run when this page was built)

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