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

PresidentTitletype

Each seat's title from a round's finishing order: 0 President, 1 Vice-President, the last two Vice-Beggar and Beggar, everybody else a Citizen.

Import it

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

Definition

type PresidentTitle = "president" | "vicePresident" | "citizen" | "viceBeggar" | "beggar";

Examples

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

const value: PresidentTitle = "president";
console.log(value);
president

What it prints (run when this page was built)

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