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

CribbagePegtype

What one card played in the pegging scored, and why: "fifteen", "a pair", "a run of three", "go", "last card", "thirty-one".

Import it

import type { CribbagePeg } from "@johnmorrisdotca/toranpu/cribbage";

Definition

type CribbagePeg = {
    seat: number;
    points: number;
    why: string[];
};

Members

NameTypeDescription
seatnumber
pointsnumber
whystring[]

Examples

import type { CribbagePeg } from "@johnmorrisdotca/toranpu/cribbage";

const value: CribbagePeg = { seat: 0, points: 2, why: ["fifteen"] };
console.log(value.points);
2

What it prints (run when this page was built)

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