suitOffunction
A card's suit, 0 to 3 in SUITS order.
Import it
import { suitOf } from "@johnmorrisdotca/toranpu/freecell";
Definition
function suitOf(card: number): number
Parameters
| Name | Type | Description |
|---|---|---|
card | number | The packed card number from 0 to 51. |
Returns
number
A card's suit, 0 to 3 in SUITS order.
Examples
import { suitOf } from "@johnmorrisdotca/toranpu/freecell";
console.log(suitOf(0));0What it prints (run when this page was built)