Skip to main content
Formal Specification

Moroccan courtyard tag (L'Oula / Lalla Aicha) — Formal Specification

Morocco · chase-tag · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 1
# Chita — AI-optimized specification ## General idea A dynamic 2D multi-agent pursuit and evasion game. One Chaser agent pursues M Runner agents across a bounded continuous grid. Tagging a runner transfers the "Chita" role under a strict anti-tag-back constraint. Runners manage a finite pool of immunity actions (*Gless* / crouching or reaching sanctuary zones). ## Formal model - **Abstraction taken:** The 2D outdoor field (20×20m) is modeled with continuous positions and synchronous discrete ticks (Δt=100ms). Speed differences and stamina dynamics govern pursuit: Vchaser=4.5m/s, Vrunner=4.2m/s, with sanctuary zones Zsafe providing temporary invulnerability. - **Player/agent count:** 1 Chaser (Ac) and M Runners (A1…AM, default M=5). - **Turn model:** Synchronous real-time ticks. ## Formal rules R1. **Arena & Initial Setup:** - Arena bounded by [−10,10]×[−10,10]m. - Sanctuary zones: 2 circular zones of radius R=1.0m at (−6,−6) and (6,6). - Initial Chaser Ac=A0; all agents start with stamina =100, crouch tokens =3, immunity timer =0. R2. **Movement & Stamina Dynamics:** - On each tick, every active agent submits a 2D velocity vector 𝐯i: - Max sprint speed consumes stamina: stamina←stamina−α⋅‖𝐯i‖2. - When stamina ≤0, speed is capped at Vwalk=2.0m/s. R3. **Tagging & Role Transfer:** - If distance ‖Pc−Pk‖≤0.6m between Chaser Ac and active runner Ak: - If Ak is NOT immune (crouching or in sanctuary): - **Tag Success!** - Chaser role transfers: Ac←Ak. - **Anti-Tag-Back Rule:** The previous chaser receives an immunity buffer of 3.0 seconds (τimmune=30 ticks) and cannot be tagged. R4. **Sanctuary & Crouch Immunity (*Gless*):** - A runner may execute `crouch()` if crouch tokens >0: - Crouch consumes 1 token; runner becomes immobile (V=0) and invulnerable for max 3 seconds. - A runner standing inside a designated sanctuary zone Zsafe is invulnerable (max 5 consecutive seconds allowed). R5. **Scoring & Match End:** - [gap-fill] Match runs for fixed duration Tmax⁡=1000 ticks (~100 seconds). Each agent accumulates "survival points" for every second spent as a free runner ( +1 pt/sec). The agent with the highest total score at Tmax⁡ wins. ## Edge cases - **Tie at the end condition:** Broken by agent with highest remaining stamina and crouch tokens. - **A player with no legal move:** Movement within boundaries or crouching is always legal. - **Repetition / cycles:** Bounded by fixed match duration Tmax⁡=1000 ticks. - **Simultaneous claims on the same resource or position:** Boundary collisions push agents apart via elastic repulsive force. - **Player elimination mid-round; turn order repair:** Not applicable — role transfers dynamically without eliminating players. - **Resource exhaustion:** Crouch tokens are strictly finite (3 per runner); match time is finite. - **Termination guarantee:** Guaranteed by monotonic clock terminating at Tmax⁡=1000 ticks. ## State representation - **Persistent state:** Score table per agent, current chaser ID, match tick t∈[1,1000]. - **Agent state:** Position (Xi,Yi), velocity (Vxi,Vyi), stamina Ei∈[0,100], crouch tokens ∈[0,3], immunity countdown τi, status ∈{running,crouching,chaser,immune}. - **Observable information:** Fully observable 2D state for all agents. ## Action space - `run(dir_x, dir_y, speed)`: Continuous vector. - `crouch()`: Spend 1 token to gain temporary immunity. - `enter_sanctuary()`: Move into zone coordinate. ## Playability notes - **Single-player-vs-AI:** Highly exciting: human plays as Runner dodging coordinated pursuit or as Chaser cutting off angles using predictive AI pathing. - **Group games (M=5):** Multi-agent flocking and spatial evasion benchmarks. - **Physical-skill games:** Sprint acceleration and turning agility abstracted into physics friction and stamina. - **What is lost in the adaptation:** The physical wind in the face, breathlessness, and laughing yells of *"Chita!"*. ## Implementation hints - Implement agent steering using Craig Reynolds' boids / pursuit-and-evasion vector math. - First milestone: Implement 1 Chaser vs 1 Runner with anti-tag-back immunity timer before scaling to multi-runner sanctuary logic.

Download as JSON

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

Download JSON
Cite this page

Moroccan courtyard tag (L'Oula / Lalla Aicha) (Morocco). (n.d.). Games of Countries. https://gamesofcountries.com/games/ma-morocco/chita

@misc{gamesofcountries-ma-morocco-chita,
  title = {Moroccan courtyard tag (L'Oula / Lalla Aicha) (Morocco)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ma-morocco/chita}
}