Formal Specification
Traditional Moroccan kite fighting (Tayara d-L-Kaghit) — Formal Specification
Morocco · kite · Confidence: medium
← Back to game pageImplementation 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 , with line length and line tension . When line segments intersect in space, an abrasive friction wear accumulator increments based on relative line velocity .
- **Player/agent count:** 2 agents ().
- **Turn model:** Synchronous real-time simulation ticks ().
## Formal rules
R1. **Wind Field & Kite Aerodynamics:**
- Uniform wind vector with stochastic turbulence .
- Each kite has position vector , orientation angle , line length , line tension , and line integrity (initial ).
R2. **Player Line Control Inputs:**
- On each tick, active agent submits line action:
- `pull_line(rate)`: Increases line tension (), accelerates kite forward along current heading , retrieves line length ().
- `release_line(rate)`: Reduces tension (), kite enters free-spin roll mode (), releases line ().
- `hold_line()`: Stable glide along current heading.
R3. **Line Crossing & Contact Detection:**
- 3D ray segment from launch point to kite position is evaluated for geometric intersection with opponent's line segment.
- If minimum distance between lines , lines are classified as **Crossed** at contact point .
R4. **Friction Wear & Line Severance:**
- During line crossing, each tick applies abrasive wear:
- .
- 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 :
- Agent 's line is **Severed** (`status(k) = cut`).
- Opponent scores 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 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 ticks (60 seconds). [gap-fill] If neither line is cut within , 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 ; crashing into ground () forfeits the round.
- **Termination guarantee:** Guaranteed by finite round time limit ticks and 3-point match threshold.
## State representation
- **Persistent state:** Match score , round index , wind base velocity.
- **Dynamic state:** For each kite : position , altitude , heading , line length , tension , line integrity , state .
- **Observable information:** Fully observable 3D aerial state for both players.
## Action space
- `control_line(mode, rate)`:
- `mode` .
- `rate` .
## 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 ():** Can support multi-kite free-for-all dogfights with -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 JSONCite 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}
}