Formal Specification
Hide and Seek — Formal Specification
Nepal · hide-seek · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Lukamari — AI-optimized specification
## General idea
Lukamari is a multi-agent asymmetric hide-and-seek game played on a bounded 2D grid containing obstacles (cover nodes). One Seeker hunts for hidden agents while Hiders attempt to stay out of the Seeker's line of sight and sprint to the Home Base to execute a safety tag (*Dhyappa!*).
## Formal model
- **Abstraction taken:** Environment is modeled as a 2D grid map (). Line of sight (LOS) is computed via Bresenham ray-casting.
- **Player/agent count:** agents (1 Seeker, Hiders).
- **Turn model:** Phase 1 (Count/Hide: ticks), followed by Phase 2 (Simultaneous ticked search: ).
## Formal rules
R1. Setup: Home Base is located at fixed grid coordinate .
R2. Phase 1 (Concealment):
- Seeker is immobilized at with zero visibility for 20 ticks.
- Hiders move up to 1 cell per tick (4-directional orthogonal) to reach cover positions that break LOS from .
R3. Phase 2 (Active Search and Sprint):
- At each tick , all active agents choose an action .
- Seeker line of sight (LOS): Seeker projects 360-degree vision rays up to vision range , blocked by obstacle cells ().
R4. Spotting Mechanism:
- If Hider falls within Seeker's unblocked LOS, Hider is SPOTTED .
- Once spotted, Seeker may tag Hider by reaching Home Base or touching Hider 's cell.
R5. Home Base Tag (*Dhyappa*):
- If any Hider reaches cell before being tagged by the Seeker, Hider executes `TAG_DHYAPPA()`.
- Hider is declared SAFE and removed from active pursuit.
- [gap-fill] If the last remaining active Hider executes *Dhyappa*, all previously caught hiders are rescued Seeker loses round and must repeat as seeker.
R6. Round Resolution:
- If all hiders are either tagged or safe, the round terminates.
- The first hider tagged becomes the Seeker for the next round.
R7. Match Termination: Match runs for 10 rounds; the agent with fewest rounds as seeker wins.
## Edge cases
- Tie at the end condition: If Seeker and Hider reach Base simultaneously on the exact same tick, [gap-fill] Hider achieves *Dhyappa* successfully.
- A player with no legal move: `STAY` action is always valid.
- Repetition / cycles: Bounded by finite maximum ticks per round ().
- Simultaneous claims on the same resource or position: Handled explicitly by cell collision rules (multiple agents can occupy open cells).
- Player elimination mid-round: Tagged or safe hiders transition to spectator state until next round.
- Resource exhaustion: None.
- Termination guarantee: Guaranteed by hard round tick timeout () and finite round count.
## State representation
- `grid_map`: 2D binary matrix .
- `seeker_position`: .
- `hider_positions`: Array of coordinates .
- `hider_status`: Array .
- `base_coordinate`: .
- `tick_counter`: Integer .
## Action space
- `move(direction)`: Select .
- `tag_dhyappa()`: Valid only when occupying Base .
## Playability notes
- Single-player-vs-AI: Highly engaging as a stealth/chase grid AI challenge (both playing as Seeker and as Hider).
- Group games (n>4): Standard benchmark for multi-agent reinforcement learning (MARL).
- Physical-skill games: Real-world occlusion and sprinting abstracted into grid LOS ray-casting and cell transitions.
- What is lost in the adaptation: Physical 3D contortions of squeezing into small hideaways.
## Implementation hints
Standard 2D grid world. Use Bresenham line algorithm for fast LOS ray-tracing. First milestone: build the 15×15 grid environment with 20% random obstacle density and test shortest-path A* pathfinding to Base .
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Hide and Seek (Nepal). (n.d.). Games of Countries. https://gamesofcountries.com/games/np-nepal/lukamari
@misc{gamesofcountries-np-nepal-lukamari,
title = {Hide and Seek (Nepal)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/np-nepal/lukamari}
}