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

dealerOffunction

The seat that deals this hand: the first seat, then round to the left.

Import it

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

Definition

function dealerOf(deal: number): number

Parameters

NameTypeDescription
dealnumber

The deal number or dealing specification.

Returns

number

The seat that deals this hand: the first seat, then round to the left.

Examples

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

console.log(dealerOf(0));
0

What it prints (run when this page was built)

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