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

gameSaysfunction

A game in a line: what it is about, for a list of games.

Import it

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

Definition

function gameSays(kind: CardGameKind, language?: Language): string

Parameters

NameTypeDescription
kindCardGameKind

The named card game or sound kind.

language (optional)Language

English or Japanese for the displayed words.

Returns

string

A game in a line: what it is about, for a list of games.

Examples

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

console.log(gameSays("hearts", "en"));
Avoid hearts and the queen of spades. Pass three cards, follow suit, lowest score wins.

What it prints (run when this page was built)

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