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

readTenkaMovefunction

A kept move read back, or null for anything that is not one.

Import it

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

Definition

function readTenkaMove(kept: unknown): TenkaMove | null

Parameters

NameTypeDescription
keptunknown

The unknown compact move data to parse.

Returns

TenkaMove | null

The parsed move, or null when the compact shape is not recognized.

Examples

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

console.log(readTenkaMove(["t"]));
{ kind: 'endTurn' }

What it prints (run when this page was built)

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