Formal Specification
Egyptian Tug of War — Formal Specification
Egypt · strength-endurance · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: abstractedGap-fills: 2
# Shedd El-Habl — AI-optimized specification
## General idea
A two-team contest of synchronized mechanical traction and stamina management along a 1D axis. Agents allocate stamina between steady pull force and explosive surge spikes. The net differential force shifts the rope position toward the dominant team's baseline until the victory threshold is crossed.
## Formal model
- **Abstraction taken:** Collective human isometric muscle tension, footwear friction, and rhythm synchronization are modeled as a discrete 1D position influenced by net pulling force , bounded by agent stamina pools.
- **Player/agent count:** 2 teams (Team A vs Team B).
- **Turn model:** Synchronous discrete ticks (e.g., 200ms per tick).
## Formal rules
R1. Setup: Central rope marker starts at . Victory thresholds are (Team A wins) and (Team B wins).
R2. Each agent begins with `stamina = 100`.
R3. On each tick, both agents simultaneously select an exertion strategy from:
- `SUSTAIN`: Effort = 30, Force output = 30, Stamina cost = 1.
- `SURGE`: Effort = 70, Force output = 70, Stamina cost = 5.
- `REST / BRACE`: Effort = 10, Force output = 15 (friction brace), Stamina regen = +3 (capped at 100).
R4. Force & Position Update:
- Net force .
- Position update: .
- If stamina reaches 0, the agent is `EXHAUSTED` (Force output = 5 until stamina regens to ).
R5. Win Condition:
- If : Team A wins the pull.
- If : Team B wins the pull.
R6. [gap-fill] Time Limit: Maximum 100 ticks per pull. If tick 100 is reached with , the team with the marker in their territory ( for A, for B) wins.
R7. [gap-fill] Match Structure: Match is decided by best-of-3 pulls.
## Edge cases
- Tie at the end condition: If exactly at tick 100, an immediate sudden-death 20-tick surge round is played.
- A player with no legal move: Action set `{SUSTAIN, SURGE, REST}` is always legal.
- Repetition / cycles: Bounded by the 100-tick hard limit (R6).
- Simultaneous claims on the same resource or position: Handled smoothly by net force subtraction ().
- Player elimination mid-round; turn order repair: Not applicable; 2 teams contest the full match.
- Resource exhaustion (pieces, tokens, space, time): Stamina depletes dynamically and recovers via REST; ticks capped at 100.
- Termination guarantee: Guaranteed by the 100-tick limit and monotonic score tracking.
## State representation
- Persistent state: `match_pulls_won`: `{TEAM_A: int, TEAM_B: int}`, `current_pull_index: int`.
- Per-pull state:
- `rope_position`: float .
- `stamina_A`: float in .
- `stamina_B`: float in .
- `tick_counter`: integer in `0..100`.
- Observable information: Rope position, remaining stamina, and match score are public.
## Action space
- `pull_action(strategy)`: `strategy ∈ {SUSTAIN, SURGE, REST}`.
## Playability notes
- Single-player-vs-AI: Playable as a stamina management and surge timing strategy game against AI.
- Group games (n>4): Parameterized as multi-agent team pulling where total force is the sum of individual team members' outputs.
- Physical-skill games: Pure procedural/strength activity adapted into a discrete game-theoretic stamina allocation model.
- What is lost in adaptation: The raw physical strain, hand blistering, and collective rhythmic vocal grunting.
## Implementation hints
Extremely simple 1D scalar accumulation model. First milestone: implement simultaneous strategy resolution, stamina drain, and position clamping.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Egyptian Tug of War (Egypt). (n.d.). Games of Countries. https://gamesofcountries.com/games/eg-egypt/shedd-el-habl
@misc{gamesofcountries-eg-egypt-shedd-el-habl,
title = {Egyptian Tug of War (Egypt)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/eg-egypt/shedd-el-habl}
}