crazyPointsfunction
What a card left in hand is worth to the winner of the hand.
Import it
import { crazyPoints } from "@johnmorrisdotca/toranpu/crazy-eights";
Definition
function crazyPoints(card: CardId): number
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The physical card or card id to read, draw or play. |
Returns
number
What a card left in hand is worth to the winner of the hand.
Examples
import { crazyPoints } from "@johnmorrisdotca/toranpu/crazy-eights";
console.log(crazyPoints("8H"));50What it prints (run when this page was built)