Skip to main content
Formal Specification

Who is in the Garden — Formal Specification

Estonia · singing-circle · Confidence: high

← Back to game page

Implementation 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 N players is modeled as an ordered ring graph CN=(v0,v1,…,vN−1) and 1 central state node vcenter. Song verses are modeled as discrete execution steps of fixed duration Lverse beats. - **Player/agent count:** N+1 agents total (1 Center, N Circle perimeter, N≥5). - **Turn model:** Strictly sequential rounds corresponding to single verse cycles. ## Formal rules R1. Topological Setup: - N agents occupy perimeter positions indexed 0…N−1 in a circular ring. - 1 agent occupies the center position vcenter (the "Bee"). - A global round counter r=1 and a visitation bitmask V∈{0,1}N+1 are initialized with the initial center agent marked as visited. R2. Round Execution (Verse Phase): - A round consists of Lverse discrete beats [gap-fill: parameterized as Lverse=8 bars/beats]. - During beats 1…7, the ring agents step clockwise (position index i←(i+1)modN). - On beat 8 (cue "sisse!"), the active Center agent Acenter must submit an action `select_partner(p_idx)` choosing a perimeter agent Ak at index pidx∈[0,N−1]. R3. Role Exchange & Ring Reconstitution: - Agent Ak is transferred to vcenter and becomes the new Bee. - The former center agent Acenter steps into the vacant perimeter slot at index pidx. - Bitmask is updated: V[Ak]←1. R4. Round Progression and Termination: - The round counter increments: r←r+1. - [gap-fill: The session terminates when all N+1 agents have held the center position at least once (∑V=N+1), or upon reaching a configured round limit Rmax=N+1]. 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 arg⁡min⁡Vi) 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 [0,N−1]. - Repetition / cycles: Bounded by the hard round termination limit Rmax=N+1 [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 CN→CN−1, 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 Rmax in R4 [gap-fill: termination guarantee via round cap]. ## State representation - Persistent state: - `ring_order`: Array of size N containing agent IDs on the perimeter. - `center_agent_id`: Agent ID currently in vcenter. - `visited_mask`: Boolean array tracking agents who have been in center. - `round_count`: Current round integer. - Per-round ephemeral state: - `current_beat`: Integer beat b∈[1,Lverse]. - `partner_choice`: Selected target index pidx. - Observable information: Fully observable public ring state, current beat, and visitation history. ## Action space - `select_partner(p_idx)`: Center agent chooses target index pidx∈[0,N−1] on beat 8. - `step_rhythm()`: Circle agents execute rhythmic advance on beats 1…7. ## 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 N≥6. 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 JSON
Cite 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}
}