spiderDeckfunction
The hundred and four cards of a game of so many suits, sorted: each suit's thirteen, as many times as fill two decks.
Import it
import { spiderDeck } from "@johnmorrisdotca/toranpu/spider";
Definition
function spiderDeck(suits: number): number[]
Parameters
| Name | Type | Description |
|---|---|---|
suits | number | The allowed suits. |
Returns
number[]
The hundred and four cards of a game of so many suits, sorted: each suit's thirteen, as many times as fill two decks.
Examples
import { spiderDeck } from "@johnmorrisdotca/toranpu/spider";
console.log(spiderDeck(1).length);104What it prints (run when this page was built)