Formal Specification
Kuwaiti Hoop and Wire Rolling Race — Formal Specification
Kuwait · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 1
# Al-Darbaha — AI-optimized specification
## General idea
A continuous kinematic steering and sprint racing game. Agents balance forward sprint velocity against the angular stability of a rolling metal hoop, navigating cornering friction and obstacle dodging without triggering rotational wobbles that cause the hoop to collapse.
## Formal model
- **Abstraction taken:** The 50-meter track is modeled as a 2D spline path with discrete course waypoints and corner curves. Time ticks at `0.1s`. The hoop's physical state tracks forward speed `v`, tilt angle `theta ∈ [-45°, 45°]`, and rotational stability `S ∈ [0..100]`.
- **Player/agent count:** `N` racing agents (`2 <= N <= 8`).
- **Turn model:** Simultaneous real-time ticked execution.
## Formal rules
R1. Track Topology:
- Linear distance: `50.0m` with 2 corner turns at `20.0m` and `35.0m`.
- Finish line: `x = 50.0m`.
R2. Steering & Kinematics per Tick:
- Agent declares throttle `a ∈ [0.0..5.0] m/s^2` and steering torque `tau ∈ [-1.0..1.0]`.
- Hoop velocity updates: `v = min(v_max, v + a * dt - friction * dt)`.
- Hoop stability dynamics:
`S = S - abs(tau) * (v / 3.0) + recovery_skill * dt`. [gap-fill]
- If `S <= 0`: Hoop falls flat. Speed `v` resets to 0, agent suffers a 2.0-second recovery penalty before stability resets to 100.
R3. Collision Constraints:
- Mutual agent proximity `dist < 0.5m` induces stability loss on both competitors: `S -= 15.0`.
R4. Win Condition:
- First agent whose hoop position `x >= 50.0m` while upright (`S > 0`) wins the race.
## Edge cases
- **Tie at the end condition:** Evaluated by earliest tick crossing `x >= 50.0m`.
- **A player with no legal move:** Agents always possess throttle and steering controls.
- **Repetition / cycles:** Forward motion monotonically increases distance `x`, guaranteeing finish.
- **Simultaneous claims on track lane:** Evaluated via lateral displacement and stability friction.
- **Player elimination mid-round:** Hoop fall incurs time penalty but not permanent elimination.
- **Resource exhaustion:** Not applicable.
- **Termination guarantee:** Guaranteed by monotonic forward progress toward finish line.
## State representation
- **Persistent state:**
- `race_positions: Array[N] of float` (x-coordinates).
- `race_finished: Array[N] of bool`.
- `finish_order: List[int]`.
- **Ephemeral tick state:**
- `agent_speed: Array[N] of float`.
- `hoop_stability: Array[N] of float` (0..100).
- `fall_timer: Array[N] of float`.
- **Information set:** Perfect information, fully observable.
## Action space
- `accelerate(throttle: float)`: Forward propulsion via wire push.
- `steer(torque: float)`: Lateral wire guidance around curves.
- `brake()`: Decelerate to stabilize wobbly hoop.
## Playability notes
- **Single-player-vs-AI:** Highly playable racing mechanics. Player balances speed vs stability through tight alley corners.
- **Group games:** Scales cleanly up to 8 racers in parallel lanes.
- **Physical-skill model:** Gyroscopic hoop balance is modeled via dynamic stability pools and velocity-dependent steering drag.
- **What is lost:** Tactile vibrations of the metal wire against rough cobblestones.
## Implementation hints
Tune the cornering stability penalty so that taking corners at full throttle reliably causes hoops to wobble and fall, forcing agents to brake appropriately.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Kuwaiti Hoop and Wire Rolling Race (Kuwait). (n.d.). Games of Countries. https://gamesofcountries.com/games/kw-kuwait/al-darbaha
@misc{gamesofcountries-kw-kuwait-al-darbaha,
title = {Kuwaiti Hoop and Wire Rolling Race (Kuwait)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/kw-kuwait/al-darbaha}
}