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 · Crazy Eights

CrazyEightsResulttype

How a hand ended: who won it, and the points each winner took.

Import it

import type { CrazyEightsResult } from "@johnmorrisdotca/toranpu/crazy-eights";

Definition

type CrazyEightsResult = {
    winners: number[];
    points: number;
    blocked: boolean;
};

Members

NameTypeDescription
winnersnumber[]
pointsnumber
blockedboolean

Examples

import type { CrazyEightsResult } from "@johnmorrisdotca/toranpu/crazy-eights";

const value: CrazyEightsResult = { winners: [0], points: 40, blocked: false };
console.log(value.winners);
[ 0 ]

What it prints (run when this page was built)

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