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 · Spades

SpadesDealScoretype

What one finished deal did to a partnership's score, as the scores table explains it.

Import it

import type { SpadesDealScore } from "@johnmorrisdotca/toranpu/spades";

Definition

type SpadesDealScore = {
    points: [
        number,
        number
    ];
    bags: [
        number,
        number
    ];
};

Members

NameTypeDescription
points[number, number]

The points the deal made or cost each partnership: seats 0 and 2 first, then 1 and 3.

bags[number, number]

The overtricks (bags) each partnership took this deal.

Examples

import type { SpadesDealScore } from "@johnmorrisdotca/toranpu/spades";

const value: SpadesDealScore = { points: [30, 40], bags: [0, 0] };
console.log(value.points);
[ 30, 40 ]

What it prints (run when this page was built)

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