suitInfunction
The suit a card belongs to once trumps are made: the left bower is a trump.
Import it
import { suitIn } from "@johnmorrisdotca/toranpu/euchre";
Definition
function suitIn(card: CardId, trump: CardSuit | null): CardSuit
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
CardSuit
The suit a card belongs to once trumps are made: the left bower is a trump.
Examples
import { suitIn } from "@johnmorrisdotca/toranpu/euchre";
console.log(suitIn("JD", "H"));HWhat it prints (run when this page was built)