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

marksForfunction

What the map lights up for a choice.

Import it

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

Definition

function marksFor(game: TenkaGame, choice: TenkaChoice): TenkaMapMarks

Parameters

NameTypeDescription
gameTenkaGame

The current native game state.

choiceTenkaChoice

The current user-interface selection.

Returns

TenkaMapMarks

What the map lights up for a choice.

Examples

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

const game = startTenka(10,["Seat 1","Seat 2"],42)!;
const choice = {from:null,to:null,armies:1,placedOn:null};
console.log(marksFor(game,choice));
{ chosen: null, reach: [], target: null }

What it prints (run when this page was built)

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