Skip to the content

Tenka天下

Play seeded world conquest for two to six, with dice battles, cards, computer players and saved games.

Tenka means the world under heaven in Japanese. About the name

Contents

Reference · Rules, maps and records

tenkaRecordfunction

THE RECORD OF A GAME, move by move, with the dice and everything else each move brought: made by playing the game again from its seed. A game whose moves do not replay from its table (one put together by hand, in a test) is recorded as far as they do.

Import it

import { tenkaRecord } from "@johnmorrisdotca/tenka";

Definition

function tenkaRecord(game: TenkaGame): TenkaRecordEntry[]

Parameters

NameTypeDescription
gameTenkaGame

The current native game state.

Returns

TenkaRecordEntry[]

THE RECORD OF A GAME, move by move, with the dice and everything else each move brought: made by playing the game again from its seed. A game whose moves do not replay from its table (one put together by hand, in a test) is recorded as far as they do.

Examples

import { startTenka, tenkaRecord } from "@johnmorrisdotca/tenka";

const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaRecord(game).length);
0

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tenka 2.2.0.