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

euchreHeightfunction

A card's height within its suit as the hand is played: ace high; in trumps the right bower, then the left, above everything.

Import it

import { euchreHeight } from "@johnmorrisdotca/toranpu/euchre";

Definition

function euchreHeight(card: CardId, trump: CardSuit | null): number

Parameters

NameTypeDescription
cardstring

The physical card or card id to read, draw or play.

trumpCardSuit | null

The current trump suit.

Returns

number

A card's height within its suit as the hand is played: ace high; in trumps the right bower, then the left, above everything.

Examples

import { euchreHeight } from "@johnmorrisdotca/toranpu/euchre";

console.log(euchreHeight("JD", "H"));
19

What it prints (run when this page was built)

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