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 · Games and state

nextSeatfunction

The next seat round the table, to the left: the order every game here plays in.

Import it

import { nextSeat } from "@johnmorrisdotca/toranpu";

Definition

function nextSeat(seat: number, seats: number): number

Parameters

NameTypeDescription
seatnumber

The zero-based player seat.

seatsnumber

The seat count or seat state supplied by this API.

Returns

number

The next seat round the table, to the left: the order every game here plays in.

Examples

import { nextSeat } from "@johnmorrisdotca/toranpu";

console.log(nextSeat(3, 4));
0

What it prints (run when this page was built)

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