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

SpiderSpottype

A place a tap lands on the table: the pile, and which card in it from the bottom.

Import it

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

Definition

type SpiderSpot = {
    pile: string;
    index: number;
};

Members

NameTypeDescription
pilestring
indexnumber

Examples

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

const value: SpiderSpot = { pile: "1", index: 0 };
console.log(value.pile);
1

What it prints (run when this page was built)

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