Reference · Rules, maps and records
nextSeatInfunction
The next player still in after seat, round the table; the neutral army never takes a turn.
Import it
import { nextSeatIn } from "@johnmorrisdotca/tenka";
Definition
function nextSeatIn(game: TenkaGame, seat: TenkaSeat): TenkaSeat
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
seat | number | The zero-based player seat. |
Returns
number
The next player still in after seat, round the table; the neutral army never takes a turn.
Examples
import { nextSeatIn, startTenka } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(nextSeatIn(game,game.toPlay));0What it prints (run when this page was built)