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

spiderDealOfSeedfunction

The deal of a seed at so many suits: the site's one shuffle (shuffled) of both decks, written down.

Import it

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

Definition

function spiderDealOfSeed(seed: number, suits: number): string

Parameters

NameTypeDescription
seednumber

The numeric seed that reproduces the same shuffle or deal.

suitsnumber

The allowed suits.

Returns

string

The deal of a seed at so many suits: the site's one shuffle (shuffled) of both decks, written down.

Examples

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

console.log(spiderDealOfSeed(42, 1));
IKMALDHHLABEBHELEKCGMHAIMEMCCBMCFAJHGJGLGDHDGEHGKLMGIADLLDLKFIKCMKDJFJFJJMCGJBBICJEFBABFDIBDEKFFIAAECIHK

What it prints (run when this page was built)

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