Formal Specification
Moroccan courtyard tag (L'Oula / Lalla Aicha) — Formal Specification
Morocco · chase-tag · Confidence: medium
← Back to game pageImplementation 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 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 () is modeled with continuous positions and synchronous discrete ticks (). Speed differences and stamina dynamics govern pursuit: , , with sanctuary zones providing temporary invulnerability.
- **Player/agent count:** 1 Chaser () and Runners (, default ).
- **Turn model:** Synchronous real-time ticks.
## Formal rules
R1. **Arena & Initial Setup:**
- Arena bounded by .
- Sanctuary zones: 2 circular zones of radius at and .
- Initial Chaser ; all agents start with stamina , crouch tokens , immunity timer .
R2. **Movement & Stamina Dynamics:**
- On each tick, every active agent submits a 2D velocity vector :
- Max sprint speed consumes stamina: .
- When stamina , speed is capped at .
R3. **Tagging & Role Transfer:**
- If distance between Chaser and active runner :
- If is NOT immune (crouching or in sanctuary):
- **Tag Success!**
- Chaser role transfers: .
- **Anti-Tag-Back Rule:** The previous chaser receives an immunity buffer of () and cannot be tagged.
R4. **Sanctuary & Crouch Immunity (*Gless*):**
- A runner may execute `crouch()` if crouch tokens :
- Crouch consumes 1 token; runner becomes immobile () and invulnerable for max 3 seconds.
- A runner standing inside a designated sanctuary zone is invulnerable (max 5 consecutive seconds allowed).
R5. **Scoring & Match End:**
- [gap-fill] Match runs for fixed duration ticks (~100 seconds). Each agent accumulates "survival points" for every second spent as a free runner ( ). The agent with the highest total score at 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 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 ( per runner); match time is finite.
- **Termination guarantee:** Guaranteed by monotonic clock terminating at ticks.
## State representation
- **Persistent state:** Score table per agent, current chaser ID, match tick .
- **Agent state:** Position , velocity , stamina , crouch tokens , immunity countdown , status .
- **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 ():** 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 JSONCite 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}
}