本文へ移動

Toranpuトランプ

デッキを使い、11種類のゲームでコンピューターと対戦し、ソリティアを解いたり、独自の絵柄でカードを表示したりできます。

「トランプ」は、日本語で playing cards を指す言葉です。 名前について(英語)

目次

リファレンス · カードの絵柄

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' ]

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/toranpu 2.15.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。