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
| Name | Type | Description |
|---|---|---|
table | SpiderTable | 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));falseWhat it prints (run when this page was built)