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

WarEndtype

Why a game of War ended: one player has every card ("cleared"), a player could not finish a war and the other could, or both could not and one ran out first ("short"), both ran out together ("drawn"), or the turns ran out ("limit").

Import it

import type { WarEnd } from "@johnmorrisdotca/toranpu/war";

Definition

type WarEnd = "cleared" | "short" | "drawn" | "limit";

Examples

import type { WarEnd } from "@johnmorrisdotca/toranpu/war";

const value: WarEnd = "limit";
console.log(value);
limit

What it prints (run when this page was built)

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