Formal Specification
King's Game / Viking Game / Kubb — Formal Specification
Denmark · dexterity-throw · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Kongespil (Vikingespil) — AI-optimized specification
## General idea
A tactical turn-based lawn bowling and skittle game. Two opposing teams alternate throwing 6 wooden batons underhand to knock down opponent wooden blocks (kubbs) and ultimately topple the central King. Knocked-down kubbs are thrown into the opposing half and erected as field blocks, creating temporary defensive obstacles that alter throwing lines and force dynamic risk-reward target prioritization.
## Formal model
- **Abstraction taken:** Continuous physical lawn aerodynamics, ground friction, and wood-on-wood collision mechanics are abstracted into discrete target entities on a meter 2D court. Baton throws are modeled as stochastic Bernoulli trials parameterized by effective throwing distance, target geometry, and agent aim skill .
- **Player/agent count:** 2 teams (Team A and Team B), each with 1 to 6 agents.
- **Turn model:** Strictly alternating team turns; 6 baton throws allocated per team turn.
## Formal rules
R1. **Court & Initial Setup:** Rectangular pitch meters divided by a center line at . King is positioned at center . Team A baseline is at with 5 baseline kubbs ; Team B baseline is at with 5 baseline kubbs .
R2. **Initiative:** At match start, one player from each team throws a baton toward the King from the baseline; the team whose baton lands closest without touching the King takes the first turn.
R3. **Turn Structure (Team Active):** A turn for Team against opponent consists of three sequential phases:
1. *Phase 1 — Ingestion & Placement of Field Kubbs:* Any kubbs toppled by in the previous turn are gathered by and thrown into 's half. erects them upright where they land, adding them to active field kubbs .
2. *Phase 2 — Throwing Line Calculation:* If left any field kubbs standing in their own half (), may advance their throwing line to the standing field kubb closest to the center line. Otherwise, must throw from their baseline.
3. *Phase 3 — Baton Volley (6 Batons):* throws 6 batons underhand sequentially.
- Target Constraint: If , MUST topple all standing field kubbs in before any baseline kubb in can be legally targeted.
- Baseline Kubbs: Once , batons may target baseline kubbs in .
- King Attack: If and , remaining batons may target the King from the baseline.
R4. [gap-fill] Field Kubb Placement Rule:** When throwing knocked-down kubbs into the opponent's half, if a kubb lands outside the pitch, 1 re-throw is permitted. If the second attempt fails, the opposing team may place the kubb anywhere in their half, at least 1 baton-length ( m) away from the King and boundary lines.
R5. **Premature King Foul (Instant Loss):** If any baton topples the King while any opponent field kubb or baseline kubb remains standing, the throwing team instantly loses the entire match.
R6. **Victory Condition:** A team wins the match if they successfully topple all opponent field kubbs, all opponent baseline kubbs, and then topple the King with a legal baseline throw.
R7. [gap-fill] Maximum Turn Cap:** If neither team has achieved victory after complete rounds (80 half-turns), the match ends; the team with fewer total standing kubbs (baseline + field) wins. If tied, each team throws 1 baton at the King from the baseline in sudden death.
## Edge cases
- Tie at the end condition: Standard play cannot tie due to immediate King-toppling win/loss triggers. In capped play (R7), sudden death King throw breaks ties [gap-fill].
- A player with no legal move: Not applicable; 6 batons are always available to throw on every active turn.
- Repetition / cycles: Bounded by finite kubbs and the strict round cap in R7.
- Simultaneous claims on the same resource or position: Batons are thrown sequentially (1 through 6), resolving each collision and state update before the next throw.
- Player elimination mid-round; turn order repair: If an individual player on a multi-player team disconnects, remaining teammates redistribute the 6 baton throws equally.
- Resource exhaustion (pieces, tokens, space, time): Exactly 1 King, 10 kubbs, and 6 batons exist; pieces are never destroyed, only transitioned between states (`Baseline`, `Field`, `Toppled`).
- Termination guarantee: why the game provably ends: Guaranteed by R5 (instant loss on premature King strike), R6 (absorbing win state), and R7 ( round bound).
## State representation
- **Persistent state:** Court dimensions (), King coordinate , King status (`Upright`, `Toppled`), rosters of Team A and Team B.
- **Per-turn ephemeral state:** Sets of active baseline kubbs , sets of active field kubbs , effective throwing line , batons remaining in volley , current round number .
- **Observable information:** Fully observable; all piece positions, baseline states, and previous throw trajectories are public to both teams.
## Action space
- `throw_baton(target_id)`: Target . Precondition: target legality per Phase 3 rules, baton count .
- `throw_field_kubb(kubb_id, target_coord)`: Launch knocked-down kubb into opponent court. Precondition: Phase 1 execution.
## Playability notes
- Single-player-vs-AI: Highly playable; human vs. AI Kubb engine is a standard format where AI evaluates target clustering and risk-reward of King attacks.
- Group games (n>4): Natively supports 1v1 up to 6v6 by dividing the 6 baton throws across team members.
- Physical-skill games: Underhand throw accuracy modeled as , with multi-kubb knockdown probabilities computed for adjacent clustered field kubbs.
- What is lost in the adaptation: Natural turf bounce unpredictability, wind deflection, and physical wood-carving aesthetics.
## Implementation hints
Medium complexity. Core architecture requires: (1) state machine enforcing target dependencies (), (2) throwing line forward displacement calculation, and (3) a 2D spatial clustering resolver for Phase 1 kubb throws. First milestone: build turn-order engine with 1v1 discrete hit probabilities and verify instant-loss King foul logic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
King's Game / Viking Game / Kubb (Denmark). (n.d.). Games of Countries. https://gamesofcountries.com/games/dk-denmark/kongespil
@misc{gamesofcountries-dk-denmark-kongespil,
title = {King's Game / Viking Game / Kubb (Denmark)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/dk-denmark/kongespil}
}