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 · Klondike

KlondikePiletype

A place on the table a move names: the stock s, the waste w, a suit's foundation by its letter (S H D C, as a card id writes a suit), or a column 1–7.

Import it

import type { KlondikePile } from "@johnmorrisdotca/toranpu/klondike";

Definition

type KlondikePile = "s" | "w" | "S" | "H" | "D" | "C" | "1" | "2" | "3" | "4" | "5" | "6" | "7";

Examples

import type { KlondikePile } from "@johnmorrisdotca/toranpu/klondike";

const value: KlondikePile = "w";
console.log(value);
w

What it prints (run when this page was built)

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