HitotsuCard型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { HitotsuCard } from "@johnmorrisdotca/hitotsu";
定義
type HitotsuCard = string;
例
import type { HitotsuCard } from "@johnmorrisdotca/hitotsu";
import { hitotsuWords } from "@johnmorrisdotca/hitotsu";
const value: HitotsuCard = "R70";
console.log(hitotsuWords(value));red seven出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。