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

bigTwoChargefunction

What a hand left in is charged when somebody goes out: a point a card, double for ten or more, treble for thirteen or more.

Import it

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

Definition

function bigTwoCharge(left: number): number

Parameters

NameTypeDescription
leftnumber

The remaining hand or the first comparison value.

Returns

number

What a hand left in is charged when somebody goes out: a point a card, double for ten or more, treble for thirteen or more.

Examples

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

console.log(bigTwoCharge(13));
39

What it prints (run when this page was built)

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