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 · Oh Hell

dealerOffunction

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

Import it

import { dealerOf } from "@johnmorrisdotca/toranpu/oh-hell";

Definition

function dealerOf(deal: number, seats: number): number

Parameters

NameTypeDescription
dealnumber

The deal number or dealing specification.

seatsnumber

The seat count or seat state supplied by this API.

Returns

number

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

Examples

import { dealerOf } from "@johnmorrisdotca/toranpu/oh-hell";

console.log(dealerOf(0, 4));
0

What it prints (run when this page was built)

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