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 · Big Two

BigTwoValuetype

A play's kind and how strong it is among plays of the same number of cards.

Import it

import type { BigTwoValue } from "@johnmorrisdotca/toranpu/big-two";

Definition

type BigTwoValue = {
    kind: BigTwoKind;
    size: number;
    strength: number;
};

Members

NameTypeDescription
kindBigTwoKind
sizenumber
strengthnumber

Examples

import type { BigTwoValue } from "@johnmorrisdotca/toranpu/big-two";
import { bigTwoValue } from "@johnmorrisdotca/toranpu/big-two";

const value: BigTwoValue = bigTwoValue(["3D"])!;
console.log(value.kind);
single

What it prints (run when this page was built)

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