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

tenkaNeighboursfunction

A territory's neighbours, by land and by sea.

Import it

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

Definition

function tenkaNeighbours(territory: number, map?: TenkaMap): readonly number[]

Parameters

NameTypeDescription
territorynumber

The native territory index.

map (optional)TenkaMap

The native world or Europe map to use.

Returns

readonly number[]

A territory's neighbours, by land and by sea.

Examples

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

console.log(tenkaNeighbours(0));
[ 1, 3, 29 ]

What it prints (run when this page was built)

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