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

MoveTextOptionstype

How a move is put into words.

Import it

import type { MoveTextOptions } from "@johnmorrisdotca/toranpu";

Definition

type MoveTextOptions = {
    language?: Language;
    form?: "offer" | "did" | "hidden";
    players?: readonly string[];
};

Members

NameTypeDescription
language (optional)Language | undefined

English unless said.

form (optional)"offer" | "did" | "hidden" | undefined

"offer" is a button's words for the player to move ("Play Q♠"), which is what is given unless said. "did" is what a record says after a name ("plays Q♠"). "hidden" is "did" as another player at the table saw it: cards passed, given or laid away face down are counted, not named.

players (optional)readonly string[] | undefined

The players' names by seat, for a move that names one (Go Fish's ask). A seat without a name is "Seat 2".

Examples

import type { MoveTextOptions } from "@johnmorrisdotca/toranpu";

const value: MoveTextOptions = { language: "ja", form: "offer" };
console.log(value.language);
ja

What it prints (run when this page was built)

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