Formal Specification
Libyan Tuareg Camel Racing — Formal Specification
Libya · animal-contest · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 0
# Sabq al-Mahari Libi — AI-optimized specification
## General idea
A multi-agent stamina-management race simulation over a 5,000-meter desert track. Agents choose racing paces across discrete stages, balancing sprint speed against exponential camel stamina drain and terrain obstacles, aiming to cross the finish line first without collapsing from exhaustion.
## Formal model
- **Abstraction taken:** Continuous camel gait dynamics and desert terrain variance are discretized into a 25-tick race (each tick = 200m). Pacing choices directly govern velocity and stamina consumption.
- **Player/agent count:** `N` agents (default `N = 6`, Agent 0 to 5).
- **Turn model:** Simultaneous discrete action selection per race tick.
## Formal rules
R1. Setup: Total distance `D_total = 5000m`. Each agent starts at `Dist_i = 0`, `Stamina_i = 100.0`, and `FatigueRate_i = 1.0`.
R2. Action Selection: Each tick, each agent simultaneously selects a pace:
- `Trot`: Velocity `v = 150m/tick`, Stamina cost `delta_S = -1.0`.
- `Canter`: Velocity `v = 200m/tick`, Stamina cost `delta_S = -3.5`.
- `Gallop`: Velocity `v = 280m/tick`, Stamina cost `delta_S = -8.0`.
- `Sprint`: Velocity `v = 350m/tick`, Stamina cost `delta_S = -16.0`.
R3. Exhaustion & Terrain Noise:
- Terrain noise: `v_actual = v * (1.0 + Noise_i)` where `Noise_i ~ Normal(0, 0.05)`.
- If `Stamina_i <= 0`, camel enters `Exhausted` state: velocity capped at `v = 80m/tick` and cannot select Canter/Gallop/Sprint.
- Vocal encouragement action `encourage_call()`: Once per race, restores `+15 Stamina`.
R4. Spatial Update: `Dist_i(t+1) = Dist_i(t) + v_actual`.
R5. Win Condition: The first agent whose `Dist_i >= D_total` wins. If multiple agents cross in the same tick, the agent with the largest `Dist_i` wins.
## Edge cases
- Tie at the end condition: If two agents finish with identical distance within 0.1m, tie is broken by higher remaining stamina.
- A player with no legal move: Not applicable; Trot pace is unconditionally available even at 0 stamina.
- Repetition / cycles: Monotonically increasing distance guarantees termination within `<= 35 ticks`.
- Simultaneous claims on the same resource or position: Handled by continuous floating-point distance comparisons.
- Player elimination mid-round; turn order repair: Exhausted agents continue at minimum trot pace.
- Resource exhaustion: Monotonically decaying stamina is handled by the fallback trot mechanic.
- Termination guarantee: Enforced by the positive minimum velocity ensuring distance reaches 5000m.
## State representation
- Persistent state: `distances: Array[N][float]`, `staminas: Array[N][float]`, `shout_used: Array[N][bool]`, `tick: int in [1..35]`.
- Ephemeral state: `selected_paces: Array[N][Pace]`.
- Observability: Complete visibility of rival distances, estimated stamina levels, and track progress.
## Action space
- `select_pace(pace_type)` where `pace_type in {Trot, Canter, Gallop, Sprint}`.
- `use_encourage_call()`: Triggerable boolean action.
## Playability notes
- Single-player-vs-AI: Engaging resource-management tactical race against AI bots executing distinct pacing profiles.
- Group games (n>4): Scales naturally to any number of race participants.
- Physical-skill games: Camel biomechanics abstracted into discrete energy-speed transfer functions.
- What is lost: The rhythmic sway of the *tarik* saddle and the crisp desert morning wind.
## Implementation hints
1D physics and stamina state machine. First milestone: implement 25-tick velocity integration and stamina drain curves with AI heuristic pacing before adding terrain noise.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Libyan Tuareg Camel Racing (Libya). (n.d.). Games of Countries. https://gamesofcountries.com/games/ly-libya/sabq-al-mahari-libya
@misc{gamesofcountries-ly-libya-sabq-al-mahari-libya,
title = {Libyan Tuareg Camel Racing (Libya)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ly-libya/sabq-al-mahari-libya}
}