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 · Cribbage

otherOffunction

The seat that is not this one.

Import it

import { otherOf } from "@johnmorrisdotca/toranpu/cribbage";

Definition

function otherOf(seat: number): number

Parameters

NameTypeDescription
seatnumber

The zero-based player seat.

Returns

number

The seat that is not this one.

Examples

import { otherOf } from "@johnmorrisdotca/toranpu/cribbage";

console.log(otherOf(0));
1

What it prints (run when this page was built)

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