Reference · Options, materials, stacks and wear
stackPresetsconstant
The usual sizes of a stack of cards, each with where the number comes from.
Import it
import { stackPresets } from "@johnmorrisdotca/fuda-cards";
Definition
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' },
},
]
Examples
import { stackPresets } from "@johnmorrisdotca/fuda-cards";
console.log(stackPresets.map((preset) => preset.count)); // [ 52, 54, 60, 10 ][ 52, 54, 60, 10 ]What it prints (run when this page was built)