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 · Spider

spiderDeckOffunction

The cards a deal string names, or null for one that is not both decks of a game of so many suits.

Import it

import { spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";

Definition

function spiderDeckOf(deal: string, suits: number): number[] | null

Parameters

NameTypeDescription
dealstring

The deal number or dealing specification.

suitsnumber

The allowed suits.

Returns

number[] | null

The cards a deal string names, or null for one that is not both decks of a game of so many suits.

Examples

import { spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";

console.log(spiderDeckOf(spiderDealOfSeed(42, 1), 1)?.length);
104

What it prints (run when this page was built)

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