rankOffunction
A card's rank, 1 for an ace to 13 for a king.
Import it
import { rankOf } from "@johnmorrisdotca/toranpu/spider";
Definition
function rankOf(card: number): number
Parameters
| Name | Type | Description |
|---|---|---|
card | number | The packed card number from 0 to 51. |
Returns
number
A card's rank, 1 for an ace to 13 for a king.
Examples
import { rankOf } from "@johnmorrisdotca/toranpu/spider";
console.log(rankOf(0));1What it prints (run when this page was built)