spiderDeckOffunction
The cards a deal string names, or null for one that is not both decks of a game of so many suits.
Import it
import { spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
Definition
function spiderDeckOf(deal: string, suits: number): number[] | null
Parameters
| Name | Type | Description |
|---|---|---|
deal | string | The deal number or dealing specification. |
suits | number | The allowed suits. |
Returns
number[] | null
The cards a deal string names, or null for one that is not both decks of a game of so many suits.
Examples
import { spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
console.log(spiderDeckOf(spiderDealOfSeed(42, 1), 1)?.length);104What it prints (run when this page was built)