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

FreeCellPiletype

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

Import it

import type { FreeCellPile } from "@johnmorrisdotca/toranpu/freecell";

Definition

type FreeCellPile = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "a" | "b" | "c" | "d" | "S" | "H" | "D" | "C";

Examples

import type { FreeCellPile } from "@johnmorrisdotca/toranpu/freecell";

const value: FreeCellPile = "a";
console.log(value);
a

What it prints (run when this page was built)

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