Formal Specification
Knocking the Goat — Formal Specification
Slovenia · dexterity-throw · Confidence: low
← Back to game pageImplementation 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 (), Field (), and Goat Target . Movement and tag mechanics are resolved via real-time discrete ticks ( s) or discrete sequential phases.
- **Player/agent count:** agents (, with ).
- **Turn model:** Two interleaved phases: (1) Sequential Throw Phase, (2) Simultaneous Retrieval & Tag Sprint.
## Formal rules
R1. Setup:
- Safe Line at . Target Goat at with state .
- Throwers start at holding their stone token ().
- Shepherd starts at .
R2. Throw Action:
- Active thrower executes `throw_stone(aim_x, aim_y, power)`.
- Landing point .
- Collision check: If , then .
- Thrower's token position is updated to , and thrower state .
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 has `is_safe = True` while touching it.
- When an agent executes `pickup_stone()`, and `is_safe \leftarrow False`.
R4. Tagging & Goat Rebuild:
- If :
- Shepherd MUST execute `rebuild_goat()` taking duration s before tagging is permitted.
- While , all throwers have unconditional immunity from tagging.
- If :
- Shepherd can tag any thrower agent in the field where IF is holding stone and not behind Safe Line ().
R5. Role Transition & Match Round:
- If thrower is tagged, becomes the new Shepherd for the next round; previous shepherd becomes a thrower.
- [gap-fill] Match terminates after fixed rounds . 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 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 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 JSONCite 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}
}