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

RANKSconstant

The ranks in order, ace low: 1 (the ace) to 13 (the king).

Import it

import { RANKS } from "@johnmorrisdotca/toranpu/deck";

Definition

const RANKS: readonly Rank[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]

Examples

import { RANKS } from "@johnmorrisdotca/toranpu/deck";
console.log(RANKS);
[
   1, 2, 3,  4,  5,  6,
   7, 8, 9, 10, 11, 12,
  13
]

What it prints (run when this page was built)

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