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

beginTurnfunction

A turn starting for seat: its armies worked out, nothing yet taken, nothing rolled.

Import it

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

Definition

function beginTurn(game: TenkaGame, seat: TenkaSeat, round: number): TenkaGame

Parameters

NameTypeDescription
gameTenkaGame

The current native game state.

seatnumber

The zero-based player seat.

roundnumber

The round number of the turn.

Returns

TenkaGame

A turn starting for seat: its armies worked out, nothing yet taken, nothing rolled.

Examples

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

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

What it prints (run when this page was built)

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