Reference · Rules, maps and records
tenkaExportedfunction
A game as the JSON export's object: its table, its moves, and where it stands.
Import it
import { tenkaExported } from "@johnmorrisdotca/tenka";
Definition
function tenkaExported(game: TenkaGame): TenkaExported
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
Returns
TenkaExported
A game as the JSON export's object: its table, its moves, and where it stands.
Examples
import { startTenka, tenkaExported } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaExported(game).format);2What it prints (run when this page was built)