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

teamOffunction

A seat's partnership: 0 for seats 0 and 2, 1 for seats 1 and 3.

Import it

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

Definition

function teamOf(seat: number): 0 | 1

Parameters

NameTypeDescription
seatnumber

The zero-based player seat.

Returns

0 | 1

A seat's partnership: 0 for seats 0 and 2, 1 for seats 1 and 3.

Examples

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

console.log(teamOf(3));
1

What it prints (run when this page was built)

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