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

PresidentSwaptype

Cards handed over at the start of a round: the best cards up, whatever the receiver chooses back down.

Import it

import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";

Definition

type PresidentSwap = {
    from: number;
    to: number;
    cards: CardId[];
};

Members

NameTypeDescription
fromnumber
tonumber
cardsstring[]

Examples

import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";

const value: PresidentSwap = { from: 0, to: 3, cards: ["3D", "4C"] };
console.log(value.cards);
[ '3D', '4C' ]

What it prints (run when this page was built)

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