Skip to main content
Formal Specification

Knocking the Goat — Formal Specification

Slovenia · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Kozo zbijat — AI-optimized specification ## General idea An asymmetrical pursuit and target-defense game played on a 2D plane with safe base lines. Thrower agents cast stones to topple a central target pedestal guarded by a shepherd agent; toppling the target grants temporary immunity while the shepherd rebuilds it, during which throwers must retrieve their stones and sprint back to safety. ## Formal model - **Abstraction taken:** The 2D outdoor field is discretized into coordinate zones: Safe Throw Line (y=0), Field (y∈(0,10)), and Goat Target (xG,yG)=(0,9.0). Movement and tag mechanics are resolved via real-time discrete ticks (Δt=0.1 s) or discrete sequential phases. - **Player/agent count:** N agents (A0=Shepherd,A1…AN−1=Throwers, with N≥3). - **Turn model:** Two interleaved phases: (1) Sequential Throw Phase, (2) Simultaneous Retrieval & Tag Sprint. ## Formal rules R1. Setup: - Safe Line at y=0. Target Goat at (0,9.0) with state goat_standing∈{True,False}. - Throwers start at y=0 holding their stone token (has_stone=True). - Shepherd starts at (0,8.0). R2. Throw Action: - Active thrower Ak executes `throw_stone(aim_x, aim_y, power)`. - Landing point (xs,ys)∼𝒩((aimx,aimy),σthrow2). - Collision check: If ‖(xs,ys)−(0,9.0)‖≤Rgoat, then goat_standing←False. - Thrower's token position is updated to (xs,ys), and thrower state has_stone←False. R3. Stone Retrieval & Immunity: - Throwers with stones on the field can choose action `run_to_stone()` or `wait_at_base()`. - An agent standing at their stone position ‖pos(Ak)−(xs,ys)‖≤Rtouch has `is_safe = True` while touching it. - When an agent executes `pickup_stone()`, has_stone←True and `is_safe \leftarrow False`. R4. Tagging & Goat Rebuild: - If goat_standing==False: - Shepherd MUST execute `rebuild_goat()` taking duration Trebuild=2.0 s before tagging is permitted. - While goat_standing==False, all throwers have unconditional immunity from tagging. - If goat_standing==True: - Shepherd can tag any thrower agent Ak in the field where ‖pos(A0)−pos(Ak)‖≤Rtag IF Ak is holding stone and not behind Safe Line (y≤0). R5. Role Transition & Match Round: - If thrower Ak is tagged, Ak becomes the new Shepherd A0 for the next round; previous shepherd becomes a thrower. - [gap-fill] Match terminates after fixed rounds M=10. The agent who spent the fewest total rounds as Shepherd wins. ## Edge cases - Tie at the end condition: Tied shepherd durations result in a joint win or sudden-death 1v1 target throw. - A player with no legal move: Throwers who have thrown must retrieve or wait; Shepherd must rebuild or chase. - Repetition / cycles: [gap-fill] If all throwers have thrown and all missed with none daring to retrieve, a mandatory coordinated sprint timeout triggers after T=30 s. - Simultaneous claims on the same resource or position: Multiple throwers may occupy base line simultaneously; tagging resolves individually per distance check. - Player elimination mid-round; turn order repair: If an agent disconnects, role is reallocated if they were shepherd; thrower count decrements. - Resource exhaustion: Stones are indestructible; target is continuously reset upon rebuilding. - Termination guarantee: Finite round count M=10 guarantees match termination. ## State representation - Persistent state: `shepherd_id: int`, `round_number: int`, `shepherd_durations: dict[int, int]`. - Ephemeral round state: `goat_standing: bool`, `stone_positions: dict[int, tuple[float, float]]`, `agent_positions: dict[int, tuple[float, float]]`, `has_stone: dict[int, bool]`, `is_safe: dict[int, bool]`. - Observable information: Fully observable (all positions, immunity states, and goat status are public). ## Action space - `throw_stone(x: float, y: float)`: Throwing aiming parameters. - `move_to(x: float, y: float)`: Continuous agent movement vector. - `pickup_stone()`: Retrieve stone from ground. - `rebuild_goat()`: Shepherd action to restore target. ## Playability notes - Single-player-vs-AI: Highly engaging; human plays as thrower timing the retrieval sprint while predicting shepherd rebuild timing. - Group games (n>4): Natively designed for 4 to 8 agents. - Physical-skill games: Sprint velocities, reaction times, and throw accuracy mapped to agent physics parameters. - What is lost: Physical dust, tactile weight of limestone stones, bluffing facial gestures. ## Implementation hints Multi-agent 2D continuous simulation with simple spatial state machines (Safe/Vulnerable/Immune). First milestone: implement 3-agent game (1 shepherd, 2 throwers) on 2D grid with discrete state transitions.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Knocking the Goat (Slovenia). (n.d.). Games of Countries. https://gamesofcountries.com/games/si-slovenia/kozo-zbijat

@misc{gamesofcountries-si-slovenia-kozo-zbijat,
  title = {Knocking the Goat (Slovenia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/si-slovenia/kozo-zbijat}
}