Formal Specification
Kubb (from Gotland dialect "kubb", meaning wooden block) — Formal Specification
Sweden · dexterity-throw · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 4
# Kubb — AI-optimized specification
## General idea
A traditional Gutnish lawn throwing game where two opposing teams alternate casting six wooden batons to topple opponent wooden blocks ("kubbar") on a rectangular pitch. Downed blocks are tossed into the opponent's half and raised as "field kubbar," which must be cleared before baseline blocks can be targeted. Teams race to clear all opposing blocks and finally fell the central King block; toppling the King prematurely results in instantaneous defeat.
## Formal model
- **Abstraction taken:** The 3D rigid-body collision physics of wooden batons and spinning blocks are replaced by a parameterized 2D aim-and-hit probability model. An agent selects a target block (or cluster) and an aiming offset . A Gaussian dispersion model determines whether the target block and any adjacent clustered blocks topple. Downed blocks tossed into the opposite half are positioned via a 2D landing distribution.
- **Player/agent count:** 2 teams (Team A and Team B, each with 1 to 6 agents; benchmark 1 vs 1).
- **Turn model:** Strictly alternating full turns (consisting of a Kubb-tossing phase followed by 6 sequential baton throws).
## Formal rules
R1. **Pitch Geometry & Setup:**
- The pitch is a meter rectangle divided by a centerline at . Team A defends territory ; Team B defends .
- King block () stands at .
- Team A starts with 5 baseline kubbar evenly spaced along .
- Team B starts with 5 baseline kubbar evenly spaced along .
R2. **Phase 1 (Kubb Ingestion & Field Placement):**
- If Team A knocked down kubbar in Team B's territory during their turn, Team B collects these kubbar at the start of Team B's turn.
- Team B throws all kubbar from their baseline () into Team A's half ().
- [gap-fill] Landing coordinates are sampled via . If a kubb lands out of bounds twice, Team A places it anywhere in Team A's half at least from the King/boundary.
- All thrown kubbar are stood upright as active `FIELD_KUBBAR`.
R3. **Phase 2 (Baseline & Advanced Throwing Line):**
- The active team establishes its throwing line:
- Default throwing line is the baseline.
- Advanced throwing line: If the opponent left standing field kubbar on the active team's half, the throwing line is advanced forward to the standing field kubb closest to the centerline [gap-fill].
R4. **Phase 3 (Baton Throws):**
- The active team throws 6 batons sequentially from behind their legal throwing line.
- Target Eligibility:
1. If any `FIELD_KUBBAR` exist in the target half, the team is strictly prohibited from targeting baseline kubbar or the King.
2. If all `FIELD_KUBBAR` are toppled, the team may target `BASELINE_KUBBAR`.
3. If all `FIELD_KUBBAR` and all `BASELINE_KUBBAR` are toppled, the team may target the `KING` (must throw from the baseline, not the advanced line).
R5. **Throw Outcome Resolution:**
- For aim target , baton impact is sampled as .
- A block at is toppled if Euclidean distance [gap-fill].
- Clustered kubbar whose centers fall within may be toppled simultaneously by a single baton.
R6. **King Capture & Victory Conditions:**
- Victory: If a team legally targets and topples the King after clearing all opponent field and baseline kubbar, that team wins the game immediately.
- Premature King Loss: If a team topples the King at any point while opponent field or baseline kubbar remain standing, that team immediately loses the game.
R7. **Turn Transition:**
- After 6 batons are cast, turn passes to the opponent team.
## Edge cases
- Tie at the end condition: Not applicable — the King is toppled by exactly one team, producing a deterministic binary win/loss.
- A player with no legal move: Not applicable — 6 baton throws are always mandatory and legally available.
- Repetition / cycles: While infinite cycles of missing field kubbar are theoretically possible, a maximum turn ceiling of full rounds is enforced [gap-fill]; if reached, the team with fewer standing kubbar wins.
- Simultaneous claims on the same resource or position: Not applicable — turns are sequential.
- Player elimination mid-round: Not applicable — games are team-based and non-eliminating.
- Resource exhaustion (pieces, tokens, space, time): Batons are fixed at 6 per turn; kubbar total at most 10.
- Termination guarantee: Enforced by the non-zero hit probability on each throw combined with the hard turn ceiling .
## State representation
- **Persistent state:**
- `team_A_baseline_kubbs`: list of 2D coordinates.
- `team_B_baseline_kubbs`: list of 2D coordinates.
- `team_A_field_kubbs`: list of 2D coordinates (standing / felled).
- `team_B_field_kubbs`: list of 2D coordinates (standing / felled).
- `king_position`: , `king_standing`: boolean.
- `active_team`: `A` or `B`.
- `turn_number`: integer.
- **Per-turn ephemeral state:**
- `batons_remaining`: integer .
- `current_throwing_y`: float.
- `downed_this_turn`: list of kubbs.
- **Observable information:**
- Fully observable: All block coordinates, status, and throwing lines are public knowledge with perfect information.
## Action space
- `toss_kubb(aim_x, aim_y)`: phase 1 action to cast collected downed kubbar into opponent half.
- `throw_baton(aim_x, aim_y)`: phase 3 action targeting a specific block or cluster coordinate.
## Playability notes
- Single-player-vs-AI: Exceptionally natural — player controls aim coordinates and cluster strategy against an AI opponent optimizing baton allocation.
- Group games (n>4): Teams divide the 6 batons among active players (e.g. 1 baton each in 6v6, 3 batons each in 2v2). In AI representation, this reduces cleanly to a single decision-maker per team.
- Physical-skill games: Underhand end-over-end baton throwing is modeled as a 2D Gaussian targeting distribution centered at chosen aim points.
- What is lost in the adaptation: The tactile grain of Gotland wood, the resonant wooden clack of a double-kubb strike, and sunny grass lawn camaraderie.
## Implementation hints
Highly engine-ready. The state is compact (10 2D points + King + turn counters). Strategic depth lies in "kubb clustering" (throwing downed kubbar tightly together during Phase 1 to topple multiple in a single baton throw). First milestone: implement the complete state machine (R1–R6) with a uniform random thrower, verifying that premature King strikes immediately trigger game-over.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Kubb (Sweden). (n.d.). Games of Countries. https://gamesofcountries.com/games/se-sweden/kubb
@misc{gamesofcountries-se-sweden-kubb,
title = {Kubb (Sweden)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/se-sweden/kubb}
}