spiderFinishingMovesfunction
THE GAME PLAYS ITSELF OUT once every card is dealt and face up: the moves that make the runs left, found by the solver on a small budget, or null while a card is hidden or no way is found — then the player goes on.
Import it
import { spiderFinishingMoves } from "@johnmorrisdotca/toranpu/spider";
Definition
function spiderFinishingMoves(table: SpiderTable): SpiderMove[] | null
Parameters
| Name | Type | Description |
|---|---|---|
table | SpiderTable | The native solitaire table; move helpers leave the input unchanged. |
Returns
SpiderMove[] | null
THE GAME PLAYS ITSELF OUT once every card is dealt and face up: the moves that make the runs left, found by the solver on a small budget, or null while a card is hidden or no way is found — then the player goes on.
Examples
import { dealSpider, spiderDealOfSeed, spiderDeckOf, spiderFinishingMoves } from "@johnmorrisdotca/toranpu/spider";
const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
console.log(spiderFinishingMoves(table));nullWhat it prints (run when this page was built)