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

tenkaPlayerNamefunction

A seat's name as the table reads it: the one given, or "Player 3".

Import it

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

Definition

function tenkaPlayerName(game: Pick<TenkaGame, "players">, seat: TenkaSeat): string

Parameters

NameTypeDescription
gamePick<TenkaGame, "players">

The current native game state.

seatnumber

The zero-based player seat.

Returns

string

A seat's name as the table reads it: the one given, or "Player 3".

Examples

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

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

What it prints (run when this page was built)

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