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

writeTenkaMovefunction

A move as the short list it is kept as — and sent as, to the other devices at a table played on several.

Import it

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

Definition

function writeTenkaMove(move: TenkaMove): Kept

Parameters

NameTypeDescription
moveTenkaMove

The native move to apply or encode.

Returns

Kept

A move as the short list it is kept as — and sent as, to the other devices at a table played on several.

Examples

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

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

What it prints (run when this page was built)

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