heartsHeightfunction
A card's height in a trick: ace high.
Import it
import { heartsHeight } from "@johnmorrisdotca/toranpu/hearts";
Definition
function heartsHeight(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 a trick: ace high.
Examples
import { heartsHeight } from "@johnmorrisdotca/toranpu/hearts";
console.log(heartsHeight("AS"));14What it prints (run when this page was built)