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

suitInfunction

The suit a card belongs to once trumps are made: the left bower is a trump.

Import it

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

Definition

function suitIn(card: CardId, trump: CardSuit | null): CardSuit

Parameters

NameTypeDescription
cardstring

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

trumpCardSuit | null

The current trump suit.

Returns

CardSuit

The suit a card belongs to once trumps are made: the left bower is a trump.

Examples

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

console.log(suitIn("JD", "H"));
H

What it prints (run when this page was built)

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