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

FreeCellMovetype

One move: count cards carried from one pile to another. Only a column to a column ever carries more than one, and then the cards are the top of the column, in order, and as many as the free cells and empty columns could carry one at a time (mostCarried).

Import it

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

Definition

type FreeCellMove = {
    from: FreeCellPile;
    to: FreeCellPile;
    count: number;
};

Members

NameTypeDescription
fromFreeCellPile
toFreeCellPile
countnumber

Examples

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

const value: FreeCellMove = { from: "1", to: "a", count: 1 };
console.log(value.to);
a

What it prints (run when this page was built)

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