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

FREECELL_PILESconstant

Every pile's letter, for a move written down to be read back.

Import it

import { FREECELL_PILES } from "@johnmorrisdotca/toranpu/freecell";

Definition

const FREECELL_PILES: ReadonlySet<string> = new Set<string>([...COLUMN_PILES, ...CELL_PILES, ...FOUNDATION_PILES])

Examples

import { FREECELL_PILES } from "@johnmorrisdotca/toranpu/freecell";
console.log(FREECELL_PILES);
Set(16) {
  '1',
  '2',
  '3',
  '4',
  '5',
  '6',
  '7',
  '8',
  'a',
  'b',
  'c',
  'd',
  'S',
  'H',
  'D',
  'C'
}

What it prints (run when this page was built)

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