Formal Specification
Libyan Hide and Seek — Formal Specification
Libya · hide-seek · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 1
# Al-Ghommayya Libiya — AI-optimized specification
## General idea
A stealth-and-sprint game on a discretized 2D graph. One seeker searches for hidden agents while defending a central home base. Discovered hiders race against the seeker to the base, while unspotted hiders can stage surprise sprints to liberate captured teammates.
## Formal model
- **Abstraction taken:** Environment is modeled as a connected 2D grid graph `G = (V, E)` with home base vertex `V_base` and multiple cover obstacles. Discrete time ticks represent movement steps.
- **Player/agent count:** 1 Seeker agent `S`, and `M` Hider agents `H_1..H_M` (default `M = 4`).
- **Turn model:** Simultaneous discrete movement ticks. Maximum 50 ticks per round.
## Formal rules
R1. Setup: Seeker `S` is positioned at `V_base` in blind state for ticks `t in [1..10]`. Hiders start at `V_base` and move to concealment nodes.
R2. Search Phase (ticks 11–50):
- Seeker moves up to 1 node per tick (`Speed_S = 1`).
- At each tick, Seeker computes line-of-sight (LOS) rays. If an unspotted hider `H_i` lies in unoccluded LOS within distance `<= 4`, `H_i` is declared `Spotted`.
R3. The Sprint Race:
- Once `Spotted`, both `S` and `H_i` must choose path vectors toward `V_base`.
- If `S` reaches `V_base` at or before `H_i`, `H_i` is transitioned to `Captured` status.
- If `H_i` reaches `V_base` strictly before `S`, `H_i` achieves `Safe` status.
R4. Stealth Rescue:
- If an unspotted hider `H_j` reaches `V_base` without being spotted, all currently `Captured` agents transition back to `Active` (deploying to random adjacent cover nodes).
R5. Win & Termination:
- Seeker wins if all `M` hiders are in `Captured` status simultaneously.
- Hiders win if at least 1 hider remains `Safe` or uncaptured when tick 50 expires.
## Edge cases
- Tie at the end condition: [gap-fill] If `S` and `H_i` reach `V_base` on the exact same tick, the hider is awarded `Safe` status (defender advantage).
- A player with no legal move: Not applicable; graph connectivity ensures valid adjacent movement or stationary wait action.
- Repetition / cycles: Bounded strictly by the 50-tick round cutoff.
- Simultaneous claims on the same resource or position: Handled by tie-resolution in R5.
- Player elimination mid-round; turn order repair: Captured agents are inactive until liberated by a stealth rescue.
- Resource exhaustion: Monotonically decaying tick counter from 1 to 50.
- Termination guarantee: Guaranteed by the 50-tick maximum time limit.
## State representation
- Persistent state: `pos_S: NodeId`, `pos_H: Array[M][NodeId]`, `status_H: Array[M] in {Hidden, Spotted, Safe, Captured}`, `tick: int in [1..50]`.
- Ephemeral state: `visibility_matrix: Array[M][bool]`.
- Observability: Seeker observes only nodes in active LOS; Hiders observe Seeker position if within LOS distance `<= 6`.
## Action space
- `move_to(adjacent_node_id)`: Executed each tick.
- `tag_base()`: Auto-triggered upon entering `V_base`.
## Playability notes
- Single-player-vs-AI: Highly playable as either the tactical stealth hider or the patrolling seeker AI.
- Group games (n>4): Naturally scales with `M` agents operating under independent decentralized policies.
- Physical-skill games: Sprinting stamina is abstracted into graph distance and discrete tick counts.
- What is lost: The adrenaline of crouching breathlessly in Libyan architectural shadows.
## Implementation hints
Grid graph with Raycasting/Bresenham line-of-sight occlusion. First milestone: implement 2D grid pathfinding (A*) for Seeker and Hiders with LOS raycasting before adding team rescue coordination.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Libyan Hide and Seek (Libya). (n.d.). Games of Countries. https://gamesofcountries.com/games/ly-libya/al-ghommayya-libya
@misc{gamesofcountries-ly-libya-al-ghommayya-libya,
title = {Libyan Hide and Seek (Libya)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ly-libya/al-ghommayya-libya}
}