Formal Specification
Drive the Sow into the Hole — Formal Specification
Denmark · stick-team · Confidence: high
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 3
# So i hul (Drive so i hul) — AI-optimized specification
## General idea
An ancient pastoral stick-and-ball territorial game. A central goal hole is encircled by peripheral resting holes, one for each outer driver. Drivers use hooked sticks to steer a wooden ball (the "sow") into the central hole, while a central defender (the Swineherd) blocks the ball and attempts to thrust their own stick into any peripheral hole left vacant when a driver steps out to strike.
## Formal model
- **Abstraction taken:** Continuous pasture terrain is discretized into a 2D plane containing a central goal node and peripheral hole coordinates arranged in a circle of radius . Ball physics are modeled with discrete 2D kinematic updates and deceleration. Stick possession of holes is evaluated via discrete spatial occupancy booleans.
- **Player/agent count:** 4 to 10 players (1 Swineherd, Drivers).
- **Turn model:** Synchronized discrete time ticks; simultaneous movement, striking, and hole-occupation actions.
## Formal rules
R1. **Pitch Geometry & Holes:** Pitch is centered at with central hole (radius ). peripheral holes are positioned at radius at angles . Each hole has state `Occupied(player_id)` or `Vacant`.
R2. **Initial Roles & Positions:** 1 player is `Swineherd` starting near with no assigned hole. players are `Drivers`, each starting at their assigned peripheral hole with status `Occupied(k)`. Ball ("sow") starts at position .
R3. **Simultaneous Tick Actions:** On each tick , all active agents submit one action:
- `move(dx, dy)`: Displacement with . Stepping away from a hole () sets .
- `strike_ball(dir_x, dir_y, power)`: Legal if . Updates ball velocity: .
- `occupy_hole(hole_id)`: Legal if and is `Vacant`.
R4. **Swineherd Hole Claim (Role Swap):** If the Swineherd executes `occupy_hole(H_k)` on a `Vacant` hole:
- The Swineherd becomes a `Driver` assigned to .
- The displaced driver (the previous owner of ) becomes the new `Swineherd`.
R5. **Central Goal ("So i hul!"):** When ball position enters the central goal ():
- `DriverScore` increments by 1.
- Ball is reset to , and all drivers return their sticks to their assigned peripheral holes.
R6. **Kinematic Ball Friction:** On each tick, ball position updates as , and velocity decays by friction .
R7. [gap-fill] Body Contact Foul:** Players may only manipulate the ball and defend holes with their stick. Touching the ball with feet/body or physically obstructing an opponent's body results in an immediate foul, forcing the offending player to become the Swineherd.
R8. [gap-fill] Match Termination & Victory:** The game ends when `DriverScore` reaches 5 points (collective victory for Drivers), or when ticks elapse. The individual winner is the player who accumulated the fewest total ticks in the Swineherd role.
## Edge cases
- Tie at the end condition: If multiple players tie for fewest ticks as Swineherd at , tie is broken by the player with the most successful ball strikes [gap-fill].
- A player with no legal move: `move(0, 0)` or holding stick in hole is always legal.
- Repetition / cycles: Dynamic role swapping can continue indefinitely; strictly bounded by the global tick limit in R8.
- Simultaneous claims on the same resource or position: If a Driver and the Swineherd attempt `occupy_hole(H_k)` on the exact same tick, the Driver retains the hole (defensive entitlement).
- Player elimination mid-round; turn order repair: If a driver disconnects, their peripheral hole is removed from the ring, contracting by 1. If the Swineherd disconnects, the driver furthest from their hole becomes Swineherd.
- Resource exhaustion (pieces, tokens, space, time): Conserved ball and fixed hole nodes; time bounded by .
- Termination guarantee: why the game provably ends: Guaranteed by monotonic progression of the global tick clock and the finite 5-goal cap in R8.
## State representation
- **Persistent state:** Pitch dimensions, peripheral hole coordinates , player roster, cumulative Swineherd ticks per player .
- **Per-tick ephemeral state:** Player positions , hole occupancy statuses , ball position and velocity , current tick .
- **Observable information:** Fully observable; all players observe all positions, ball trajectory, and hole statuses.
## Action space
- `move(dx, dy)`: 2D displacement vector. Precondition: agent is active.
- `strike_ball(dir, power)`: Power . Precondition: .
- `occupy_hole(hole_id)`: Target . Precondition: and is `Vacant`.
## Playability notes
- Single-player-vs-AI: Highly playable; human acts as Swineherd balancing ball clearance against hole-stealing opportunities, or as a Driver coordinating offensive pushes with AI teammates.
- Group games (n>4): Natively designed for 4 to 10 players; scales directly with number of peripheral holes .
- Physical-skill games: Stick manipulation and ball hooking are modeled as 2D force vectors and proximity checks.
- What is lost in the adaptation: The somatic clatter of wooden hooked sticks crossing, uneven natural pasture divots, and physical shoulder jostling.
## Implementation hints
Medium complexity. Involves 2D kinematic integration, circle collision for hole occupations, and an agent role-swapping state machine. First milestone: implement 2D arena with 4 perimeter holes and test Swineherd hole-stealing logic against stationary/moving drivers.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Drive the Sow into the Hole (Denmark). (n.d.). Games of Countries. https://gamesofcountries.com/games/dk-denmark/so-i-hul
@misc{gamesofcountries-dk-denmark-so-i-hul,
title = {Drive the Sow into the Hole (Denmark)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/dk-denmark/so-i-hul}
}