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 · Oh Hell

OhHellDealScoretype

What one finished deal did: each seat's bid, the tricks it took, and what it scored.

Import it

import type { OhHellDealScore } from "@johnmorrisdotca/toranpu/oh-hell";

Definition

type OhHellDealScore = {
    cards: number;
    bids: number[];
    tricks: number[];
    points: number[];
};

Members

NameTypeDescription
cardsnumber
bidsnumber[]
tricksnumber[]
pointsnumber[]

Examples

import type { OhHellDealScore } from "@johnmorrisdotca/toranpu/oh-hell";

const value: OhHellDealScore = { cards: 1, bids: [1, 0, 0], tricks: [1, 0, 0], points: [11, 10, 10] };
console.log(value.cards);
1

What it prints (run when this page was built)

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