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

mostAttackDicefunction

The most dice an attacker may throw from a territory holding armies: one army always stays behind.

Import it

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

Definition

function mostAttackDice(armies: number): number

Parameters

NameTypeDescription
armiesnumber

The armies present on a territory.

Returns

number

The most dice an attacker may throw from a territory holding armies: one army always stays behind.

Examples

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

console.log(mostAttackDice(4));
3

What it prints (run when this page was built)

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