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

foundationPileOffunction

The foundation a card goes to.

Import it

import { foundationPileOf } from "@johnmorrisdotca/toranpu/klondike";

Definition

function foundationPileOf(card: number): KlondikePile

Parameters

NameTypeDescription
cardnumber

The packed card number from 0 to 51.

Returns

KlondikePile

The foundation a card goes to.

Examples

import { foundationPileOf } from "@johnmorrisdotca/toranpu/klondike";

console.log(foundationPileOf(0));
S

What it prints (run when this page was built)

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