Skip to main content
Formal Specification

King's Game / Viking Game / Kubb — Formal Specification

Denmark · dexterity-throw · Confidence: medium

← Back to game page

Implementation 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 5×8 meter 2D court. Baton throws are modeled as stochastic Bernoulli trials parameterized by effective throwing distance, target geometry, and agent aim skill θ∈[0,1]. - **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 5×8 meters divided by a center line at y=4.0. King is positioned at center (2.5,4.0). Team A baseline is at y=0.0 with 5 baseline kubbs BA; Team B baseline is at y=8.0 with 5 baseline kubbs BB. 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 T against opponent T′ consists of three sequential phases: 1. *Phase 1 — Ingestion & Placement of Field Kubbs:* Any kubbs toppled by T′ in the previous turn are gathered by T and thrown into T′'s half. T′ erects them upright where they land, adding them to active field kubbs FT′. 2. *Phase 2 — Throwing Line Calculation:* If T left any field kubbs standing in their own half (FT≠∅), T′ may advance their throwing line to the standing field kubb closest to the center line. Otherwise, T′ must throw from their baseline. 3. *Phase 3 — Baton Volley (6 Batons):* T throws 6 batons underhand sequentially. - Target Constraint: If FT′≠∅, T MUST topple all standing field kubbs in FT′ before any baseline kubb in BT′ can be legally targeted. - Baseline Kubbs: Once FT′=∅, batons may target baseline kubbs in BT′. - King Attack: If FT′=∅ and BT′=∅, 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 (0.3 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 Tmax=40 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 Tmax=40 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 (Tmax round bound). ## State representation - **Persistent state:** Court dimensions (5×8), King coordinate (2.5,4.0), King status (`Upright`, `Toppled`), rosters of Team A and Team B. - **Per-turn ephemeral state:** Sets of active baseline kubbs BA,BB, sets of active field kubbs FA,FB, effective throwing line yline, batons remaining in volley b∈{0…6}, current round number r. - **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 ∈FT′∪BT′∪{King}. Precondition: target legality per Phase 3 rules, baton count >0. - `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 P(hit)=logistic(θskill−β⋅dist), 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 (F→B→King), (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 JSON
Cite 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}
}