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

tenkaAgainfunction

The same table again, from nothing, with a new seed: a new deal, a new first player, new dice.

Import it

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

Definition

function tenkaAgain(game: TenkaGame, seed: number): TenkaGame | null

Parameters

NameTypeDescription
gameTenkaGame

The current native game state.

seednumber

The unsigned 32-bit starting seed.

Returns

TenkaGame | null

A fresh deal of the same table, or null when the new seed is invalid.

Examples

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

const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaAgain(game,43)?.seed);
43

What it prints (run when this page was built)

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