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 · Big Two

passedOnfunction

The trick after seat passes.

Import it

import { passedOn } from "@johnmorrisdotca/toranpu/big-two";

Also exported from: @johnmorrisdotca/toranpu/president

Definition

function passedOn<T extends ClimbTrick>(trick: T, seat: number): T

Parameters

NameTypeDescription
trickT

The cards and seats in the current trick.

seatnumber

The zero-based player seat.

Returns

T

The trick after seat passes.

Examples

import { freshTrick, laid, passedOn } from "@johnmorrisdotca/toranpu/big-two";

console.log(passedOn(laid(freshTrick([["3D", "5H"], ["4C", "6S"]], 0), 0, ["3D"])!, 1).toPlay);
0

What it prints (run when this page was built)

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