suitsForfunction
The suits a game of so many suits is played with, in SUITS order: spades; spades and hearts; all four.
Import it
import { suitsFor } from "@johnmorrisdotca/toranpu/spider";
Definition
function suitsFor(suits: number): number[]
Parameters
| Name | Type | Description |
|---|---|---|
suits | number | The allowed suits. |
Returns
number[]
The suits a game of so many suits is played with, in SUITS order: spades; spades and hearts; all four.
Examples
import { suitsFor } from "@johnmorrisdotca/toranpu/spider";
console.log(suitsFor(1));[ 0 ]What it prints (run when this page was built)