Skip to main content
Formal Specification

Egyptian Stick Fencing — Formal Specification

Egypt · wrestling-combat · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Tahtib — AI-optimized specification ## General idea A two-agent martial fencing contest where combatants choose rhythmic stances, offensive stick strikes, and defensive parries each discrete tick. Attacks interact through a directional guard matrix, where an unblocked strike generates a touch and accumulates score towards victory, while mistimed attacks risk parry-counters or disarms. ## Formal model - **Abstraction taken:** Continuous physical stick sparring and musical rhythm are abstracted into discrete rounds of simultaneous stance/action selection with stochastic resolution based on guard alignment and agent skill. - **Player/agent count:** 2 agents per duel. - **Turn model:** Simultaneous discrete ticks within a match of fixed maximum rounds. ## Formal rules R1. Setup: Both agents start with 0 points, balance = 100, and neutral stance. R2. Each tick, both agents simultaneously select one action from: `{STRIKE(zone), PARRY(zone), FEINT(zone), RECOVER}` where `zone ∈ {HEAD, HIGH_LEFT, HIGH_RIGHT, TORSO}`. R3. Resolution matrix: - If Agent A executes `STRIKE(z)` and Agent B executes `PARRY(z)`, the attack is blocked; Agent B gains +10 balance and Agent A loses -10 balance. - If Agent A executes `STRIKE(z)` and Agent B executes `PARRY(z')` where `z' ≠ z` (or `RECOVER`), Agent A scores 1 point (`clean_touch`) with probability `P(success) = 0.70 + 0.05 * (skill_A - skill_B)`. - If Agent A executes `FEINT(z)` and Agent B executes `PARRY(z)`, Agent B is off-balance on the subsequent tick (cannot parry next tick). - If both agents execute `STRIKE` simultaneously, higher agility scores first; if equal, strikes deflect with no points scored. R4. Balance depletion: If an agent's balance reaches 0, they suffer a `disarm/fall` fault; the opponent receives +2 points and balance resets to 100. R5. [gap-fill] Match win condition: The first agent to reach 5 points wins immediately. If neither reaches 5 points by tick 20, the agent with the higher score wins. R6. [gap-fill] Foul penalty: Attempting an illegal strike (below torso) or repetitive unsporting actions incurs a warning; 2 warnings award the match to the opponent. ## Edge cases - Tie at the end condition: If both agents have equal points at tick 20, a single sudden-death overtime round is played; first clean touch wins. - A player with no legal move: Not applicable; all action primitives are available each tick. - Repetition / cycles: Bounded by the hard 20-tick match limit. - Simultaneous claims on the same resource or position: Simultaneous strikes are resolved via agility-priority; identical timing results in mutual deflection (null score). - Player elimination mid-round; turn order repair: Not applicable; strictly 2 agents in a 1v1 bout. - Resource exhaustion (pieces, tokens, space, time): Ticks expire at 20; points are capped at 5. - Termination guarantee: Guaranteed by the finite tick limit (20 ticks) and sudden-death single-point resolution. ## State representation - Persistent state: `score_A`, `score_B`, `balance_A`, `balance_B`, `fouls_A`, `fouls_B`, `current_tick`. - Per-tick ephemeral state: `action_A`, `action_B` (hidden until simultaneous reveal). - Observable information: Scores, balances, and previous-tick choices are public; current-tick intent is private. ## Action space - `strike(zone)`: Strike with asaya staff (head, high left/right, torso). - `parry(zone)`: Block incoming staff strike in target quadrant. - `feint(zone)`: Draw opponent parry to false target. - `recover()`: Reset guard stance and regain balance. ## Playability notes - Single-player-vs-AI: Natural fit for human vs. AI tactical sparring. - Group games (n>4): Modeled as a single-elimination tournament bracket of sequential 1v1 duels. - Physical-skill games: Physical cane manipulation and real-time dexterity are modeled via the zone-matching guard matrix and agility-weighted stochastic success. - What is lost in adaptation: The auditory-motor coordination with the live *mizmar* tempo and crowd cheering dynamics are abstracted away. ## Implementation hints Low complexity. State requires only two integers and balance meters. Suggested first milestone: implement the 4-zone simultaneous strike/parry matrix with deterministic resolution before tuning stochastic parameters.

Download as JSON

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

Download JSON
Cite this page

Egyptian Stick Fencing (Egypt). (n.d.). Games of Countries. https://gamesofcountries.com/games/eg-egypt/tahtib

@misc{gamesofcountries-eg-egypt-tahtib,
  title = {Egyptian Stick Fencing (Egypt)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/eg-egypt/tahtib}
}