euchreHeightfunction
A card's height within its suit as the hand is played: ace high; in trumps the right bower, then the left, above everything.
Import it
import { euchreHeight } from "@johnmorrisdotca/toranpu/euchre";
Definition
function euchreHeight(card: CardId, trump: CardSuit | null): number
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card or card id to read, draw or play. |
trump | CardSuit | null | The current trump suit. |
Returns
number
A card's height within its suit as the hand is played: ace high; in trumps the right bower, then the left, above everything.
Examples
import { euchreHeight } from "@johnmorrisdotca/toranpu/euchre";
console.log(euchreHeight("JD", "H"));19What it prints (run when this page was built)