Reference · Game engine and table
HitotsuCardtype
A card by its short name: its colour letter (W for a wild), its face — a
digit, S skip, R reverse, D draw two, W wild, F wild draw four —
and which copy of that card it is, so the two red fives are R50 and R51.
Two cards are the same card to play when their first two letters are.
Import it
import type { HitotsuCard } from "@johnmorrisdotca/hitotsu";
Definition
type HitotsuCard = string;
Examples
import type { HitotsuCard } from "@johnmorrisdotca/hitotsu";
import { hitotsuWords } from "@johnmorrisdotca/hitotsu";
const value: HitotsuCard = "R70";
console.log(hitotsuWords(value));red sevenWhat it prints (run when this page was built)