seatToPlayfunction
The seat whose turn it is. During a swap opening one seat lays every stone and then the other decides, whatever colour those stones are.
Import it
import { seatToPlay } from "@johnmorrisdotca/narabe";
Definition
function seatToPlay(state: GameState): Seat
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
Seat
The seat whose turn it is. During a swap opening one seat lays every stone and then the other decides, whatever colour those stones are.
Examples
import { createGame, seatToPlay } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(seatToPlay(state));oneWhat it prints (run when this page was built)