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

FreeCellSpottype

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 { FreeCellSpot } from "@johnmorrisdotca/toranpu/freecell";

Definition

type FreeCellSpot = {
    pile: FreeCellPile;
    index: number;
};

Members

NameTypeDescription
pileFreeCellPile
indexnumber

Examples

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

const value: FreeCellSpot = { 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.