Skip to main content
Formal Specification

Wall Tag / Base Tag — Formal Specification

Estonia · hide-seek · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 8
# Trihvaa (Base Tag / Hide-and-Seek) — AI-optimized specification ## General idea The canonical Estonian base-tagging and hide-and-seek game. A seeker counts at a home base while others disperse to hide; upon spotting a hider, a simultaneous footrace back to base ensues—the seeker to tag the player out into prison, or the hider to tap the base for immunity. A dramatic all-or-nothing mechanic allows the final remaining hider to liberate all captured prisoners with a single base touch. ## Formal model - **Abstraction taken:** The 3D outdoor environment with natural cover is modeled as a 2D topological grid with line-of-sight (LOS) blocking obstacles. Base tagging is resolved by simultaneous sprint velocity vectors back to the base node at (0,0). - **Player/agent count:** 1 Seeker agent (S), N Hider agents (H1…HN, N≥2). Total agents =N+1. - **Turn model:** Synchronous discrete ticks; Phase 1 (Counting) → Phase 2 (Search and Base Sprint). ## Formal rules R1. Setup and Counting Phase: - 2D grid containing passable terrain and obstacle cells. Home base node located at origin (0,0). - Seeker is locked at (0,0) with vision range =0 for Tcount=20 ticks [gap-fill: countdown duration fixed at 20 ticks]. - Hiders move up to vhider=1.0 cell/tick to take positions occluded from (0,0). R2. Active Search Phase: - At t=Tcount, Seeker activates full omnidirectional LOS with vision range Dvision=15 cells. - Seeker moves up to vseeker=1.2 cells/tick [gap-fill: seeker velocity set to 1.2 cells/tick]. - An active hider Hi is *spotted* if there is an unobstructed ray between Seeker and Hi. R3. Base Sprint & Tagging Race: - As soon as Hi is spotted (or decides to break cover), both S and Hi race toward (0,0). - Actions at (0,0): - Seeker executes `tag_out(H_i)`: Requires S to occupy (0,0) while Hi has not reached (0,0). - Hider executes `self_free()`: Requires Hi to occupy (0,0) before S tags them out. R4. Capture vs Self-Liberation Resolution: - If `tag_out(H_i)` succeeds: Hi enters `CAPTURED` status and is moved to the base prison zone. - If `self_free()` succeeds: Hi enters `SAFE` status for the remainder of the round. R5. Total Mass Liberation (*Kõik priid*): - If exactly 1 uncaptured hider Hfinal remains hidden/active, and all other N−1 hiders are in `CAPTURED` status: - If Hfinal successfully reaches (0,0) and executes `free_all()`: 1. All N−1 `CAPTURED` players immediately transition back to `HIDING`. 2. Seeker is reset to (0,0) and forced to count again per R1 [gap-fill: mass liberation resets the round with the same seeker]. R6. Round End and Role Transition: - The round concludes when all N hiders are either `CAPTURED` or `SAFE`. - If at least 1 hider is `CAPTURED` (no mass liberation), the first player captured during the round becomes the Seeker for the subsequent round [gap-fill: first-caught succession rule]. - [gap-fill: A hard session limit of Tmax=400 ticks terminates the round, scoring the seeker on proportion of hiders successfully captured]. ## Edge cases - Tie at the end condition: If Seeker and Hider reach (0,0) on the exact same tick, the Hider's base tap takes strict priority (*hider wins the tie*) [gap-fill: hider-priority tiebreaker]. - A player with no legal move: Not applicable; agents always have valid spatial movement or wait actions. - Repetition / cycles: Bounded by the hard round tick limit Tmax [gap-fill: tick ceiling guarantees cycle termination]. - Simultaneous claims on the same resource or position: Multiple hiders can enter (0,0) simultaneously; each hider executes `self_free()` independently. - Player elimination mid-round; turn order repair: Captured hiders wait in prison; their agent slots remain active and are restorable via mass liberation. - Resource exhaustion: Not applicable; space and sightlines are invariant. - Termination guarantee: Enforced by the finite tick limit Tmax in R6 [gap-fill: termination guarantee via tick limit]. ## State representation - Persistent state: - `seeker_id`: Agent ID currently seeking. - `capture_queue`: Ordered list of captured hider IDs. - `round_number`: Integer r≥1. - Per-tick ephemeral state: - `positions`: Map of Agent ID →(x,y). - `hider_status`: Map of Hider ID →{HIDING,RACING,SAFE,CAPTURED}. - `spotted_flags`: Map of Hider ID →Boolean. - `tick_counter`: Integer t∈[1,Tmax]. - Observable information: - Seeker observes: Base status, visible hiders along unblocked LOS rays. - Hiders observe: Seeker position, base status, and fellow captive counts. ## Action space - `move(dx, dy)`: Move within agent velocity limits. - `tag_out(target_id)`: (Seeker) Tag spotted hider at base (0,0). - `self_free()`: (Hider) Tap base (0,0) to secure individual immunity. - `free_all()`: (Final Hider) Tap base (0,0) to liberate all prisoners. - `wait()`: Remain stationary. ## Playability notes - Single-player-vs-AI: Exceptional tactical stealth and sprint game. Human hider timing cover dashes and rescue sprints, or human seeker patrolling territory while guarding home base. - Group games (n>4): Reduces to 1 Seeker vs 1 Hider (2 agents); in 1v1, mass liberation is not applicable, reducing to a pure single-target sprint duel. - Physical-skill games: Sprint stamina and line-of-sight shadow navigation are parameterized into velocity vectors and raycast visibility algorithms. - What is lost in the adaptation: The heart-pounding physical adrenaline of crouching behind a real lilac bush, and the triumphant shouting of "Trihvaa, mina prii!". ## Implementation hints Use a 2D grid with 20% random rectangular obstacle fill. First milestone: Implement LOS raycasting and base sprint race resolution before adding the final-hider mass liberation trigger.

Download as JSON

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

Download JSON
Cite this page

Wall Tag / Base Tag (Estonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ee-estonia/trihvaa

@misc{gamesofcountries-ee-estonia-trihvaa,
  title = {Wall Tag / Base Tag (Estonia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ee-estonia/trihvaa}
}