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

EuchreHandScoretype

What one hand did: which partnership made trumps, the tricks it took, and the points each partnership scored.

Import it

import type { EuchreHandScore } from "@johnmorrisdotca/toranpu/euchre";

Definition

type EuchreHandScore = {
    makers: 0 | 1;
    trump: CardSuit;
    tricks: number;
    points: [
        number,
        number
    ];
};

Members

NameTypeDescription
makers0 | 1
trumpCardSuit
tricksnumber
points[number, number]

Examples

import type { EuchreHandScore } from "@johnmorrisdotca/toranpu/euchre";

const value: EuchreHandScore = { makers: 0, trump: "H", tricks: 3, points: [1, 0] };
console.log(value.trump);
H

What it prints (run when this page was built)

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