Formal Specification
Traditional Tunisian Tug of War — Formal Specification
Tunisia · strength-endurance · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: abstractedGap-fills: 2
# Jebbad el-Hbel Tounissi — AI-optimized specification
## General idea
A simultaneous tug-of-war match between two teams of 8 agents. Teams manage collective isometric pulling effort and rhythmic surge timing against stamina decay. The rope position displaces along a 1D axis based on net force differentials; the first team to displace the center marker past the 2.5-meter threshold wins the bout.
## Formal model
- **Abstraction taken:** Collective physical pulling force is modeled as a 1D force differential simulation over discrete time ticks (1 tick = 1 second, max 60 ticks per bout).
- **Player/agent count:** 2 teams of 8 agents (or 1v1 controlling team commanders).
- **Turn model:** Synchronized simultaneous ticks.
## Formal rules
R1. Setup: Center marker starts at `X = 0.0m`. Win thresholds are `X <= -2.5m` (Team 0 win) and `X >= +2.5m` (Team 1 win). Each agent starts with `Stamina_i = 100.0` and `Strength_i = 50.0`.
R2. Action Selection: Each tick, each team commander selects a team-wide pulling mode:
- `SteadyPull`: Generates baseline Force `F = Sum(Strength_i * (Stamina_i / 100))`. Stamina cost `delta_S = -1.0/tick`.
- `PowerSurge`: Generates `1.4 * F`. Stamina cost `delta_S = -4.0/tick`.
- `AnchorBrace`: Generates `0.8 * F`, but increases team resistance to opposing force by `+30%`. Stamina cost `delta_S = -0.5/tick`.
R3. Physics & Displacement:
- Net force: `F_net = F_Team1 - F_Team0`.
- Displacement update: `X(t+1) = X(t) + (F_net / TotalMass) * dt`.
R4. Match Scoring: A bout terminates when `|X| >= 2.5m` or tick 60 expires.
R5. [gap-fill] Deciding Winner: A match consists of best-of-3 bouts. The team that wins 2 bouts wins the match.
## Edge cases
- Tie at the end condition: [gap-fill] If tick 60 expires with `|X| < 2.5m`, the team with the marker on their side of `X = 0` wins that bout. If `X == 0.0`, a 15-second sudden death pull is executed.
- A player with no legal move: Not applicable; pulling modes are always available.
- Repetition / cycles: Bounded strictly by the 60-tick limit per bout.
- Simultaneous claims on the same resource or position: Continuous floating-point displacement updates resolve simultaneously.
- Player elimination mid-round; turn order repair: Not applicable; team rosters remain constant throughout the bout.
- Resource exhaustion: Monotonically decaying stamina is mitigated by the low-drain `AnchorBrace` action.
- Termination guarantee: Enforced by the 60-tick hard cap.
## State representation
- Persistent state: `bout_scores: Array[2][int]`, `bout_index: int in [1..3]`.
- Ephemeral state: `rope_pos: float in [-2.5, 2.5]`, `team_staminas: Array[2][Array[8][float]]`, `active_tick: int in [1..60]`.
- Observability: Complete, perfect public information.
## Action space
- `select_pull_mode(mode)` where `mode in {SteadyPull, PowerSurge, AnchorBrace}`.
## Playability notes
- Single-player-vs-AI: Playable as a stamina-management and surge-timing contest against an adaptive AI.
- Group games (n>4): Naturally reduces to 2 controlling agents (one per team).
- Physical-skill games: Muscular force and friction parameters abstracted into clean force-integration equations.
- What is lost: The raw physical burning friction of coarse hemp rope against calloused palms.
## Implementation hints
1D dynamic integrator. First milestone: implement discrete force differential calculations and stamina decay across 60 ticks before adding rhythm surge bonuses.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Traditional Tunisian Tug of War (Tunisia). (n.d.). Games of Countries. https://gamesofcountries.com/games/tn-tunisia/jebbad-el-hbel-tunisia
@misc{gamesofcountries-tn-tunisia-jebbad-el-hbel-tunisia,
title = {Traditional Tunisian Tug of War (Tunisia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/tn-tunisia/jebbad-el-hbel-tunisia}
}