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

rankWordsfunction

A rank named in the plural, as it is asked for: "sevens", "sixes", "queens".

Import it

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

Definition

function rankWords(rank: CardRank): string

Parameters

NameTypeDescription
rankRank

The card rank to inspect or name.

Returns

string

A rank named in the plural, as it is asked for: "sevens", "sixes", "queens".

Examples

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

console.log(rankWords(1));
aces

What it prints (run when this page was built)

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