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

CardSeatstype

Who sits in each seat: the name the set-up gave, and whether a computer plays it.

Import it

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

Definition

type CardSeats = {
    players: readonly string[];
    computers: readonly boolean[];
};

Members

NameTypeDescription
playersreadonly string[]
computersreadonly boolean[]

One a seat: true where a computer plays it. A seat nobody named a computer for is a person's.

Examples

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

const value: CardSeats = { players: ["Aki", "Ben"], computers: [false, true] };
console.log(value.computers);
[ false, true ]

What it prints (run when this page was built)

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