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
| Name | Type | Description |
|---|---|---|
trick | T | The cards and seats in the current trick. |
seat | number | 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);0What it prints (run when this page was built)