stackUpValuefunction
What a card counts for: its number 1 to 12, or 0 for a wild, which is whatever a pile wants.
Import it
import { stackUpValue } from "@johnmorrisdotca/toranpu/stack-up";
Definition
function stackUpValue(card: CardId): number
Parameters
| Name | Type | Description |
|---|---|---|
card | string | The card id to read. |
Returns
number
What a card counts for: its number 1 to 12, or 0 for a wild.
Examples
import { stackUpValue } from "@johnmorrisdotca/toranpu/stack-up";
console.log(stackUpValue("n07"));7What it prints (run when this page was built)