Skip to main content
Formal Specification

Traditional Moroccan kite fighting (Tayara d-L-Kaghit) — Formal Specification

Morocco · kite · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Tiyara Waraqiya — AI-optimized specification ## General idea A 1v1 aerial dogfight simulation where two players control single-line maneuverable fighter kites in a shared wind vector field. Players maneuver their kites in 2D angular space (altitude θ, azimuth ϕ) to cross lines and execute friction cuts (pull cut vs release cut) based on relative velocity, line tension, and abrasive contact duration. ## Formal model - **Abstraction taken:** The 3D aero-elastic flight and string sag dynamics are modeled via an angular coordinate state (θi,ϕi)∈[10∘,80∘]×[−60∘,60∘], with line length Li and line tension Ti. When line segments intersect in space, an abrasive friction wear accumulator Wi(t) increments based on relative line velocity Δv. - **Player/agent count:** 2 agents (A0,A1). - **Turn model:** Synchronous real-time simulation ticks (Δt=50ms). ## Formal rules R1. **Wind Field & Kite Aerodynamics:** - Uniform wind vector 𝐖=(0,Vwind) with stochastic turbulence 𝐰(t)∼𝒩(0,σw2). - Each kite has position vector (θ,ϕ), orientation angle ψ, line length L∈[20,100]m, line tension T(t), and line integrity I∈[0,100] (initial I=100). R2. **Player Line Control Inputs:** - On each tick, active agent submits line action: - `pull_line(rate)`: Increases line tension (T↑), accelerates kite forward along current heading ψ, retrieves line length (L↓). - `release_line(rate)`: Reduces tension (T↓), kite enters free-spin roll mode (ψ˙≈ωspin), releases line (L↑). - `hold_line()`: Stable glide along current heading. R3. **Line Crossing & Contact Detection:** - 3D ray segment from launch point (0,0,0) to kite position (Xi,Yi,Zi) is evaluated for geometric intersection with opponent's line segment. - If minimum distance between lines dmin⁡≤0.05m, lines are classified as **Crossed** at contact point C. R4. **Friction Wear & Line Severance:** - During line crossing, each tick applies abrasive wear: - ΔIi=−κ⋅relative_velocity⋅TopponentTi+ϵ. - Pulling line across a stationary opponent line causes severe wear on the stationary line (Pull Cut / *Jarr*). - Rapidly unspooling line under high wind causes cutting wear (Release Cut / *Tlaq*). - If an agent's line integrity reaches Ik≤0: - Agent k's line is **Severed** (`status(k) = cut`). - Opponent scores +1 point and wins the round. R5. **Victory Condition:** - [gap-fill] The first player to achieve 3 line cuts wins the dogfight match. ## Edge cases - **Tie at the end condition:** If both lines reach I≤0 on the exact same simulation tick, the player with the higher line tension at cutoff wins; if identical, round is declared void. - **A player with no legal move:** Line pull, release, or hold is always legal during flight. - **Repetition / cycles:** Bounded by round time limit Tmax⁡=1200 ticks (60 seconds). [gap-fill] If neither line is cut within Tmax⁡, the kite with higher altitude θ wins the round. - **Simultaneous claims on the same resource or position:** Line crossing uses continuous 3D ray-distance solvers; wear applies symmetrically according to relative velocity physics. - **Player elimination mid-round; turn order repair:** Not applicable in 1v1 duel. - **Resource exhaustion:** Line length bounded [20,100]m; crashing into ground (Z≤0) forfeits the round. - **Termination guarantee:** Guaranteed by finite round time limit Tmax⁡=1200 ticks and 3-point match threshold. ## State representation - **Persistent state:** Match score (S0,S1), round index r, wind base velocity. - **Dynamic state:** For each kite i: position (θi,ϕi), altitude Zi, heading ψi, line length Li, tension Ti, line integrity Ii∈[0,100], state ∈{flying,spinning,crossed,cut,grounded}. - **Observable information:** Fully observable 3D aerial state for both players. ## Action space - `control_line(mode, rate)`: - `mode` ∈{pull,release,hold}. - `rate` ∈[0,1.0]. ## Playability notes - **Single-player-vs-AI:** Highly responsive aerial combat: human uses keyboard/analog triggers to balance spin vs pull-dive maneuvers against an aggressive AI fighter kite. - **Group games (N>2):** Can support multi-kite free-for-all dogfights with N-ray intersection solvers. - **Physical-skill games:** Line tension tactile feel and wind reading abstracted into rate-based controls and visual flight vectors. - **What is lost in the adaptation:** The physical wind tugging at fingertips, blue sky over rooftop medinas, and chasing fallen kites through alleyways. ## Implementation hints - Implement kite flight as a 2D spherical coordinate heading system where pulling induces forward acceleration and releasing induces angular yaw spinning. - First milestone: Implement single-kite spin-and-dive control before layering line-crossing detection and wear math.

Download as JSON

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

Download JSON
Cite this page

Traditional Moroccan kite fighting (Tayara d-L-Kaghit) (Morocco). (n.d.). Games of Countries. https://gamesofcountries.com/games/ma-morocco/tiyara

@misc{gamesofcountries-ma-morocco-tiyara,
  title = {Traditional Moroccan kite fighting (Tayara d-L-Kaghit) (Morocco)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ma-morocco/tiyara}
}