bigTwoCardfunction
A card's height in the whole pack, 0 (three of diamonds) to 51 (two of spades).
Import it
import { bigTwoCard } from "@johnmorrisdotca/toranpu/big-two";
Definition
function bigTwoCard(card: CardId): number
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card or card id to read, draw or play. |
Returns
number
A card's height in the whole pack, 0 (three of diamonds) to 51 (two of spades).
Examples
import { bigTwoCard } from "@johnmorrisdotca/toranpu/big-two";
console.log(bigTwoCard("3D"));0What it prints (run when this page was built)