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
| Name | Type | Description |
|---|---|---|
territory | number | 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)