allShowingfunction
Whether every card is dealt and face up: from here the game plays itself out, where it can (finishingMoves).
Import it
import { allShowing } from "@johnmorrisdotca/toranpu/spider";
Definition
function allShowing(table: SpiderTable): boolean
Parameters
| Name | Type | Description |
|---|---|---|
table | SpiderTable | The native solitaire table; move helpers leave the input unchanged. |
Returns
boolean
Whether every card is dealt and face up: from here the game plays itself out, where it can (finishingMoves).
Examples
import { allShowing, dealSpider, spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
console.log(allShowing(table));falseWhat it prints (run when this page was built)