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

spiderStuckfunction

Whether nothing can be done but give up: no card can move and the stock cannot deal.

Import it

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

Definition

function spiderStuck(table: SpiderTable): boolean

Parameters

NameTypeDescription
tableSpiderTable

The native solitaire table; move helpers leave the input unchanged.

Returns

boolean

Whether nothing can be done but give up: no card can move and the stock cannot deal.

Examples

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

const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
console.log(spiderStuck(table));
false

What it prints (run when this page was built)

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