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 · Games and state

WAR_ROUNDSconstant

How many turns of the cards a game of War may last before the player holding more cards wins.

Import it

import { WAR_ROUNDS } from "@johnmorrisdotca/toranpu";

Definition

const WAR_ROUNDS: readonly [25, 50, 100, 200, 1000] = [25, 50, 100, 200, 1000] as const

Examples

import { WAR_ROUNDS } from "@johnmorrisdotca/toranpu";
console.log(WAR_ROUNDS);
[ 25, 50, 100, 200, 1000 ]

What it prints (run when this page was built)

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