Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Games and state

CARD_GAME_LISTconstant

Every card game.

Import it

import { CARD_GAME_LIST } from "@johnmorrisdotca/toranpu";

Definition

const CARD_GAME_LIST: readonly CardGameKind[] = [
    CARD_GAME_KINDS.hearts,
    CARD_GAME_KINDS.spades,
    CARD_GAME_KINDS.euchre,
    CARD_GAME_KINDS.cribbage,
    CARD_GAME_KINDS.ohHell,
    CARD_GAME_KINDS.crazyEights,
    CARD_GAME_KINDS.goFish,
    CARD_GAME_KINDS.bigTwo,
    CARD_GAME_KINDS.president,
    CARD_GAME_KINDS.ginRummy,
    CARD_GAME_KINDS.war,
]

Examples

import { CARD_GAME_LIST } from "@johnmorrisdotca/toranpu";
console.log(CARD_GAME_LIST);
[
  'hearts',    'spades',
  'euchre',    'cribbage',
  'ohHell',    'crazyEights',
  'goFish',    'bigTwo',
  'president', 'ginRummy',
  'war'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.