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

TableSpottype

A card on the table, as a person points at it: the pile, and its place from the bottom (-1 for the pile's empty place).

Import it

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

Definition

type TableSpot = {
    pile: KlondikePile;
    index: number;
};

Members

NameTypeDescription
pileKlondikePile
indexnumber

Examples

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

const value: TableSpot = { pile: "1", index: 0 };
console.log(value.pile);
1

What it prints (run when this page was built)

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