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 · Euchre

EUCHRE_DECKconstant

The cards Euchre is played with: nine to ace of each suit.

Import it

import { EUCHRE_DECK } from "@johnmorrisdotca/toranpu/euchre";

Definition

const EUCHRE_DECK: readonly string[] = FULL_DECK.filter((card) => rankOf(card) === 1 || rankOf(card) >= 9)

Examples

import { EUCHRE_DECK } from "@johnmorrisdotca/toranpu/euchre";
console.log(EUCHRE_DECK);
[
  'AS', '9S', 'TS', 'JS',
  'QS', 'KS', 'AH', '9H',
  'TH', 'JH', 'QH', 'KH',
  'AD', '9D', 'TD', 'JD',
  'QD', 'KD', 'AC', '9C',
  'TC', 'JC', 'QC', 'KC'
]

What it prints (run when this page was built)

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