stackPresets定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The usual sizes of a stack of cards, each with where the number comes from.
インポート
import { stackPresets } from "@johnmorrisdotca/fuda-cards";
定義
const stackPresets: readonly StackPreset[] = [
{
id: "deck-52",
name: "Playing cards, 52",
count: 52,
source: { ...wikiDeck, says: '"The 52-card deck is the most popular deck"' },
},
{
id: "deck-54",
name: "Playing cards with two jokers, 54",
count: 54,
source: {
...wikiDeck,
says: 'commercial packs "often include between one and six jokers, most often two", so 52 + 2',
},
},
{
id: "pokemon-deck",
name: "Pokémon TCG deck, 60",
count: 60,
source: { ...wikiPokemon, says: 'players "play with 60-card decks"' },
},
{
id: "pokemon-booster",
name: "Booster pack, about 10",
count: 10,
source: { ...wikiPokemon, says: '"a collector can pull 10 cards in total" from a booster pack' },
},
]
例
import { stackPresets } from "@johnmorrisdotca/fuda-cards";
console.log(stackPresets.map((preset) => preset.count)); // [ 52, 54, 60, 10 ][ 52, 54, 60, 10 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。