Formal Specification
Wall Tag / Base Tag — Formal Specification
Estonia · hide-seek · Confidence: high
← Back to game pageImplementation 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 .
- **Player/agent count:** 1 Seeker agent (), Hider agents (, ). Total agents .
- **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 .
- Seeker is locked at with vision range for ticks [gap-fill: countdown duration fixed at 20 ticks].
- Hiders move up to to take positions occluded from .
R2. Active Search Phase:
- At , Seeker activates full omnidirectional LOS with vision range cells.
- Seeker moves up to [gap-fill: seeker velocity set to 1.2 cells/tick].
- An active hider is *spotted* if there is an unobstructed ray between Seeker and .
R3. Base Sprint & Tagging Race:
- As soon as is spotted (or decides to break cover), both and race toward .
- Actions at :
- Seeker executes `tag_out(H_i)`: Requires to occupy while has not reached .
- Hider executes `self_free()`: Requires to occupy before tags them out.
R4. Capture vs Self-Liberation Resolution:
- If `tag_out(H_i)` succeeds: enters `CAPTURED` status and is moved to the base prison zone.
- If `self_free()` succeeds: enters `SAFE` status for the remainder of the round.
R5. Total Mass Liberation (*Kõik priid*):
- If exactly 1 uncaptured hider remains hidden/active, and all other hiders are in `CAPTURED` status:
- If successfully reaches and executes `free_all()`:
1. All `CAPTURED` players immediately transition back to `HIDING`.
2. Seeker is reset to 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 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 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 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 [gap-fill: tick ceiling guarantees cycle termination].
- Simultaneous claims on the same resource or position: Multiple hiders can enter 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 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 .
- Per-tick ephemeral state:
- `positions`: Map of Agent ID .
- `hider_status`: Map of Hider ID .
- `spotted_flags`: Map of Hider ID .
- `tick_counter`: Integer .
- 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 .
- `self_free()`: (Hider) Tap base to secure individual immunity.
- `free_all()`: (Final Hider) Tap base 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 JSONCite 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}
}