Formal Specification
Rotten Egg — Formal Specification
Slovenia · singing-circle · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Gnilo jajce — AI-optimized specification
## General idea
A synchronous spatial circle game modeled on a discrete ring graph where a perimeter runner secretly drops a token behind a seated agent. The target agent must detect the drop through periodic observation ticks and initiate a chase race around the ring before the runner completes a full lap to inflict a penalty.
## Formal model
- **Abstraction taken:** The sitting circle is discretized into a ring graph with nodes and a central penalty node . The runner moves along continuous perimeter coordinates . Seated agents sample tactile/auditory detection checks per time step.
- **Player/agent count:** agents (, with , standard ).
- **Turn model:** Real-time ticked simulation with two phases: (1) Perimeter Walk & Secret Drop, (2) Chase or Penalty Resolution.
## Formal rules
R1. Setup: agents occupy sitting nodes arranged at angles . Active runner starts at holding token.
R2. Walk & Secret Drop:
- moves around perimeter at speed .
- At some node , executes `drop_token(k^*)`.
- Token location becomes .
R3. Detection Model:
- On each discrete tick s while token rests at node :
- Seated agent (at ) performs detection test: .
- If detected at time before runner completes full circuit ():
- Chase begins immediately.
- If runner completes full lap () without detection:
- Penalty triggers: is assigned state `is_rotten = True` and moved to . retains role and starts R2.
R4. Chase & Seat Race:
- If detected, vacates seat and chases along the perimeter.
- [gap-fill] Arrival time comparison:
- Runner travel time to vacant seat: .
- Chaser tag time: .
- If : occupies seat ; becomes the new runner.
- If : Runner is tagged; original remains runner for next round.
R5. Match Termination:
- [gap-fill] Game runs for rounds. The agent with the fewest rounds spent as runner or in the center penalty node wins.
## Edge cases
- Tie at the end condition: Equal tag and seat arrival times are resolved in favor of the seated defender.
- A player with no legal move: Seated players passively sample detection; runner must drop token within 2 laps.
- Repetition / cycles: Bounded by finite round horizon.
- Simultaneous claims on the same resource or position: Token drop can only occur at one discrete node at a time.
- Player elimination mid-round; turn order repair: If an agent in the ring disconnects, ring size decreases to ; angular positions re-index.
- Resource exhaustion: A single token is passed invariant across rounds.
- Termination guarantee: Strict termination guaranteed by -round cap.
## State representation
- Persistent state: `seat_nodes: list[int]`, `runner_id: int`, `center_rotten_ids: list[int]`, `round_index: int`.
- Ephemeral round state: `token_node: Optional[int]`, `runner_theta: float`, `is_detected: bool`, `chase_active: bool`.
- Observable information: Runner angular coordinate is public; token drop event is hidden from seated agents until probabilistic detection fires.
## Action space
- `move_runner(angular_velocity: float)`: Perimeter traversal.
- `drop_token(seat_index: int)`: Secret drop action.
- `sprint_chase()`: Chaser acceleration action upon detection.
## Playability notes
- Single-player-vs-AI: Natural; human plays as seated agent managing vigilance timing or as runner picking optimal target angles.
- Group games (n>4): Natively designed for 6 to 15 agents.
- Physical-skill games: Tactile awareness and reaction time modeled as Poisson detection rate and sprint speeds.
- What is lost: Subtlety of sly backward glances, cloth touch against the back.
## Implementation hints
Ring graph topology with continuous perimeter runner angle. First milestone: implement deterministic drop-and-chase race before adding Poisson detection latency.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Rotten Egg (Slovenia). (n.d.). Games of Countries. https://gamesofcountries.com/games/si-slovenia/gnilo-jajce
@misc{gamesofcountries-si-slovenia-gnilo-jajce,
title = {Rotten Egg (Slovenia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/si-slovenia/gnilo-jajce}
}