Skip to the content

Toranpuトランプ

Use a deck, play twelve games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Stack Up

StackUpEndtype

Why a game is over: someone played their last stock card, or nothing could be played for a whole round with no cards left to draw, and the fewest stock cards left wins.

Import it

import type { StackUpEnd } from "@johnmorrisdotca/toranpu/stack-up";

Definition

type StackUpEnd = "emptied" | "stuck";

Examples

import type { StackUpEnd } from "@johnmorrisdotca/toranpu/stack-up";

const value: StackUpEnd = "emptied";
console.log(value);
emptied

What it prints (run when this page was built)

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