Reference · Rules, maps and records
defendDicefunction
The dice a defender holding armies throws: as many as allowed, since more never hurts the defence.
Import it
import { defendDice } from "@johnmorrisdotca/tenka";
Definition
function defendDice(armies: number): number
Parameters
| Name | Type | Description |
|---|---|---|
armies | number | The armies present on a territory. |
Returns
number
The dice a defender holding armies throws: as many as allowed, since more never hurts the defence.
Examples
import { defendDice } from "@johnmorrisdotca/tenka";
console.log(defendDice(2));2What it prints (run when this page was built)