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

SpiderColumntype

One of the ten columns: its cards from the bottom up, of which the first down lie face down.

Import it

import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";

Definition

type SpiderColumn = {
    down: number;
    cards: readonly number[];
};

Members

NameTypeDescription
downnumber
cardsreadonly number[]

Examples

import { dealSpider, spiderDealOfSeed, spiderDeckOf } from "@johnmorrisdotca/toranpu/spider";
import type { SpiderColumn } from "@johnmorrisdotca/toranpu/spider";

const table = dealSpider(spiderDeckOf(spiderDealOfSeed(42, 1), 1)!);
const value: SpiderColumn = table.tableau[0]!;
console.log(value.down);
5

What it prints (run when this page was built)

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