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

dealOffunction

A deal string from card numbers.

Import it

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

Definition

function dealOf(deck: readonly number[]): string

Parameters

NameTypeDescription
deckreadonly number[]

The deck in its current order; the input is left unchanged.

Returns

string

A deal string from card numbers.

Examples

import { dealOf, dealOfSeed, deckOf } from "@johnmorrisdotca/toranpu/klondike";

console.log(dealOf(deckOf(dealOfSeed(42))!));
pvOZziGxjrXCNQoybFwJnDstTEelhRBaPAVuSHLdkKUmcMYIgqWf

What it prints (run when this page was built)

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