heartsPointsfunction
A card's points: a heart one, the queen of spades thirteen.
Import it
import { heartsPoints } from "@johnmorrisdotca/toranpu/hearts";
Definition
function heartsPoints(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 points: a heart one, the queen of spades thirteen.
Examples
import { heartsPoints } from "@johnmorrisdotca/toranpu/hearts";
console.log(heartsPoints("QS"));13What it prints (run when this page was built)