spiderWonfunction
Whether all eight runs are made.
Import it
import { spiderWon } from "@johnmorrisdotca/toranpu/spider";
Definition
function spiderWon(table: SpiderTable): boolean
Parameters
| Name | Type | Description |
|---|---|---|
table | SpiderTable | The native solitaire table; move helpers leave the input unchanged. |
Returns
boolean
Whether all eight runs are made.
Examples
import { dealSpider, spiderDealOfSeed, spiderDeckOf, spiderWon } from "@johnmorrisdotca/toranpu/spider";
const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
console.log(spiderWon(table));falseWhat it prints (run when this page was built)