Reference · Rules, maps and records
reinforcementForfunction
THE ARMIES A TURN BRINGS: one for every three territories held, never
fewer than three, and each continent held whole adds its bonus. Cards
traded in come on top (tenka.ts).
Import it
import { reinforcementFor } from "@johnmorrisdotca/tenka";
Definition
function reinforcementFor(owners: readonly TenkaOwner[], seat: TenkaSeat, map?: TenkaMap): number
Parameters
| Name | Type | Description |
|---|---|---|
owners | readonly number[] | The territory owners in native map order. |
seat | number | The zero-based player seat. |
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
number
THE ARMIES A TURN BRINGS: one for every three territories held, never fewer than three, and each continent held whole adds its bonus. Cards traded in come on top (tenka.ts).
Examples
import { reinforcementFor, startTenka } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(reinforcementFor(game.owners,0));4What it prints (run when this page was built)