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
| Name | Type | Description |
|---|---|---|
armies | number | 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));3What it prints (run when this page was built)