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

RANK_LETTERSconstant

The rank letters, ace low: an index here plus one is the rank (A = 1, J = 11, Q = 12, K = 13).

Import it

import { RANK_LETTERS } from "@johnmorrisdotca/toranpu";

Definition

const RANK_LETTERS: "A23456789TJQK" = "A23456789TJQK"

Examples

import { RANK_LETTERS } from "@johnmorrisdotca/toranpu";
console.log(RANK_LETTERS);
A23456789TJQK

What it prints (run when this page was built)

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