deckOffunction
The deck a deal string names, as card numbers, or null for one that is not a whole deck.
Import it
import { deckOf } from "@johnmorrisdotca/toranpu/klondike";
Also exported from: @johnmorrisdotca/toranpu/freecell
Definition
function deckOf(deal: string): number[] | null
Parameters
| Name | Type | Description |
|---|---|---|
deal | string | The deal number or dealing specification. |
Returns
number[] | null
The deck a deal string names, as card numbers, or null for one that is not a whole deck.
Examples
import { dealOfSeed, deckOf } from "@johnmorrisdotca/toranpu/klondike";
console.log(deckOf(dealOfSeed(42))?.slice(0, 7));[
41, 47, 14, 25,
51, 34, 6
]What it prints (run when this page was built)