Formal Specification
Who is in the Garden — Formal Specification
Estonia · singing-circle · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 6
# Kes aias (Who is in the Garden) — AI-optimized specification
## General idea
A structured turn-based singing circle game of continuous role exchange. A central agent (the bee) navigates within a perimeter ring of rosebush agents during a fixed-length lyrical verse, choosing one perimeter agent to exchange roles on the final beat, ensuring every participant cycles through the center position.
## Formal model
- **Abstraction taken:** None required for core topology; the circle of players is modeled as an ordered ring graph and 1 central state node . Song verses are modeled as discrete execution steps of fixed duration beats.
- **Player/agent count:** agents total ( Center, Circle perimeter, ).
- **Turn model:** Strictly sequential rounds corresponding to single verse cycles.
## Formal rules
R1. Topological Setup:
- agents occupy perimeter positions indexed in a circular ring.
- 1 agent occupies the center position (the "Bee").
- A global round counter and a visitation bitmask are initialized with the initial center agent marked as visited.
R2. Round Execution (Verse Phase):
- A round consists of discrete beats [gap-fill: parameterized as bars/beats].
- During beats , the ring agents step clockwise (position index ).
- On beat 8 (cue "sisse!"), the active Center agent must submit an action `select_partner(p_idx)` choosing a perimeter agent at index .
R3. Role Exchange & Ring Reconstitution:
- Agent is transferred to and becomes the new Bee.
- The former center agent steps into the vacant perimeter slot at index .
- Bitmask is updated: .
R4. Round Progression and Termination:
- The round counter increments: .
- [gap-fill: The session terminates when all agents have held the center position at least once (), or upon reaching a configured round limit ].
R5. Win/Scoring Condition:
- As a cooperative musical enculturation game, there is no adversarial elimination. [gap-fill: agent score is evaluated on parity of partner selection (favoring unvisited agents ) and timing precision on beat 8].
## Edge cases
- Tie at the end condition: Not applicable; non-adversarial cooperative completion.
- A player with no legal move: Not applicable; `select_partner` is always valid over the non-empty set of perimeter indices .
- Repetition / cycles: Bounded by the hard round termination limit [gap-fill: round cap bounding].
- Simultaneous claims on the same resource or position: Not applicable; exactly one center agent chooses a single perimeter slot per round.
- Player elimination mid-round; turn order repair: If an agent disconnects/leaves, the ring graph dynamically contracts from , closing the index gap with zero disruption [gap-fill: dynamic ring contraction].
- Resource exhaustion: Not applicable; no consumable tokens or finite energy pools.
- Termination guarantee: Enforced by the finite round limit in R4 [gap-fill: termination guarantee via round cap].
## State representation
- Persistent state:
- `ring_order`: Array of size containing agent IDs on the perimeter.
- `center_agent_id`: Agent ID currently in .
- `visited_mask`: Boolean array tracking agents who have been in center.
- `round_count`: Current round integer.
- Per-round ephemeral state:
- `current_beat`: Integer beat .
- `partner_choice`: Selected target index .
- Observable information: Fully observable public ring state, current beat, and visitation history.
## Action space
- `select_partner(p_idx)`: Center agent chooses target index on beat 8.
- `step_rhythm()`: Circle agents execute rhythmic advance on beats .
## Playability notes
- Single-player-vs-AI: Natural as a pedagogical or rhythm-timing game where human controls the center agent or a perimeter dancer responding to song cues.
- Group games (n>4): The game is inherently designed for . A 2-agent reduction reduces to alternating role swaps between 1 center and 1 perimeter agent, which degrades the collective choral dynamic but preserves the core role-swap mechanism.
- Physical-skill games: Physical skipping and singing are abstracted into discrete beat synchronization and selection logic.
- What is lost in the adaptation: Choral singing harmony, tactile warmth of holding hands, and eye-contact social bonding of childhood play.
## Implementation hints
Extremely lightweight: state requires only an array of agent IDs and an integer index. First milestone: Implement circular array rotation and index swapping on beat 8 before adding timing/scoring evaluation.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Who is in the Garden (Estonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ee-estonia/kes-aias
@misc{gamesofcountries-ee-estonia-kes-aias,
title = {Who is in the Garden (Estonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ee-estonia/kes-aias}
}