passOffsetfunction
How far round the table the cards go this deal: 1 to the left, seats − 1 to the right, 2 across, 0 held.
Import it
import { passOffset } from "@johnmorrisdotca/toranpu/hearts";
Definition
function passOffset(deal: number, seats: number): number
Parameters
| Name | Type | Description |
|---|---|---|
deal | number | The deal number or dealing specification. |
seats | number | The seat count or seat state supplied by this API. |
Returns
number
How far round the table the cards go this deal: 1 to the left, seats − 1 to the right, 2 across, 0 held.
Examples
import { passOffset } from "@johnmorrisdotca/toranpu/hearts";
console.log(passOffset(0, 4));1What it prints (run when this page was built)