Reference · Rules, maps and records
attacksOpenfunction
Every attack open now: from each territory of theirs with armies to spare, on each neighbour somebody else holds, with each number of dice — and the same attack again and again until it is decided.
Import it
import { attacksOpen } from "@johnmorrisdotca/tenka";
Definition
function attacksOpen(game: TenkaGame): TenkaMove[]
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
Returns
TenkaMove[]
Every attack open now: from each territory of theirs with armies to spare, on each neighbour somebody else holds, with each number of dice — and the same attack again and again until it is decided.
Examples
import { attacksOpen, startTenka } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(attacksOpen(game).length);0What it prints (run when this page was built)