Reference · Dice and card dressing
tenkaCardIdfunction
The id of a card in Toranpu's hands: tenka-world-12 for the world's twelfth territory, tenka-wild for a wild card.
Import it
import { tenkaCardId } from "@johnmorrisdotca/tenka/dressing";
Definition
function tenkaCardId(map: TenkaMapKey, territory: number | null): string
Parameters
| Name | Type | Description |
|---|---|---|
map | TenkaMapKey | The native world or Europe map to use. |
territory | number | null | The native territory index. |
Returns
string
The id of a card in Toranpu's hands: tenka-world-12 for the world's twelfth territory, tenka-wild for a wild card.
Examples
import { tenkaCardId } from "@johnmorrisdotca/tenka/dressing";
console.log(tenkaCardId("world",0));tenka-world-0What it prints (run when this page was built)