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

SUITSconstant

The suits in the order a fresh deck is sorted and a foundation row is laid out: spades, hearts, diamonds, clubs — black, red, red, black, so no two neighbours on a row of four look alike.

Import it

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

Definition

const SUITS: readonly Suit[] = ["spades", "hearts", "diamonds", "clubs"]

Examples

import { SUITS } from "@johnmorrisdotca/toranpu/deck";
console.log(SUITS);
[ 'spades', 'hearts', 'diamonds', 'clubs' ]

What it prints (run when this page was built)

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