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

SpiderMovetype

One move: deal a card from the stock onto every column (deal), or carry count cards from the top of one column onto another. Columns are named 0 to 9, from the left.

Import it

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

Definition

type SpiderMove = {
    kind: "deal";
} | {
    kind: "carry";
    from: number;
    to: number;
    count: number;
};

Examples

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

const value: SpiderMove = { kind: "deal" };
console.log(value.kind);
deal

What it prints (run when this page was built)

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