EXTRA_CARDS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE EXTRAS OF A REAL DECK, which no game here deals but a hand on a page may hold, as a wild
card or for the look of it: the two jokers, the two rules cards a pack is sold with (R1,
the rules of Hearts; R2, of Spades), and a blank (BL). A hand holds at most
EXTRA_LIMITS of each kind (readHand).
インポート
import { EXTRA_CARDS } from "@johnmorrisdotca/toranpu/card-faces";
定義
const EXTRA_CARDS: readonly ["RJ", "BJ", "R1", "R2", "BL"] = ["RJ", "BJ", "R1", "R2", "BL"] as const
例
import { EXTRA_CARDS } from "@johnmorrisdotca/toranpu/card-faces";
console.log(EXTRA_CARDS);[ 'RJ', 'BJ', 'R1', 'R2', 'BL' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。