teamOffunction
A seat's partnership: 0 for seats 0 and 2, 1 for seats 1 and 3.
Import it
import { teamOf } from "@johnmorrisdotca/toranpu/spades";
Definition
function teamOf(seat: number): 0 | 1
Parameters
| Name | Type | Description |
|---|---|---|
seat | number | The zero-based player seat. |
Returns
0 | 1
A seat's partnership: 0 for seats 0 and 2, 1 for seats 1 and 3.
Examples
import { teamOf } from "@johnmorrisdotca/toranpu/spades";
console.log(teamOf(3));1What it prints (run when this page was built)