Skip to main content
Formal Specification

Traditional Goatskin Ball Game — Formal Specification

Tunisia · ball-team · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Greba — AI-optimized specification ## General idea A discretized team-based ball possession and goal-scoring game. Two teams maneuver across a 7-zone longitudinal pitch, passing and running an inflated goatskin ball toward the attacking goal to execute throwing shots while defending via contact tackles. ## Formal model - **Abstraction taken:** The continuous 70-meter field is mapped to a 7-zone longitudinal grid `[Zone 1..Zone 7]` where Zone 1 is Team A's goal line and Zone 7 is Team B's goal line. Match duration is discretized into 40 simulation ticks. - **Player/agent count:** 2 teams of 6 agents. - **Turn model:** Alternating team initiative with simultaneous sub-agent movement. ## Formal rules R1. Setup: Ball starts at Zone 4 (center). Team A occupies Zones 2–3; Team B occupies Zones 5–6. Score initialized to `0-0`. R2. Opening Jump Ball: The two center agents contest Zone 4; initial possession is awarded via an agility check. R3. Legal Actions: Active team selects one action per turn: - `run_forward()`: Advance ball-carrying agent by 1 zone. - `pass(target_zone)`: Advance ball 1–2 zones. Success rate `P_pass = 0.85 - 0.10 * defenders_in_zone`. - `shoot_goal()`: Usable only in attacking goal zone (Zone 6 for Team A, Zone 2 for Team B); success rate `P_goal = 0.65 - 0.15 * defenders_in_goal`. - `tackle()`: Defending agent in the same zone attempts to dispossess ball carrier; success rate `P_tackle = 0.50 + 0.10 * skill_diff`. R4. Turnover: If a pass is intercepted, a tackle succeeds, or a goal shot is saved, possession flips immediately. R5. Scoring: A successful `shoot_goal()` increments team score by `+1 point` and resets all agents to R1 positions. R6. [gap-fill] Foul Penalty: A tackle roll `< 0.10` triggers a foul; attacking team receives a free forward advance by 1 zone. R7. Win Condition: The team with the higher score after 40 simulation ticks wins. ## Edge cases - Tie at the end condition: [gap-fill] If tied at tick 40, a 10-tick sudden death period begins; first team to score wins. If still tied, the match ends in a draw. - A player with no legal move: Not applicable; running or passing is always valid. - Repetition / cycles: Bounded strictly by the 40-tick match limit. - Simultaneous claims on the same resource or position: Resolved via R3 tackle/jump-ball mechanics. - Player elimination mid-round; turn order repair: Fouls incur territorial penalties without player ejections. - Resource exhaustion: Monotonically decaying tick counter. - Termination guarantee: Enforced by the 40-tick hard limit. ## State representation - Persistent state: `scores: Array[2][int]`, `tick: int in [1..40]`, `ball_zone: int in [1..7]`, `possession: int in {0, 1}`. - Ephemeral state: `active_action_type: ActionEnum`. - Observability: Complete, perfect public information. ## Action space - `act(action_type, target_zone)` where `action_type in {run_forward, pass, shoot_goal, tackle}`. ## Playability notes - Single-player-vs-AI: Playable as a playcalling strategy game against defensive AI. - Group games (n>4): Reduced cleanly to 2 controlling team agents. - Physical-skill games: Running speed and catching reflexes abstracted into discrete probability tables. - What is lost: The distinct tactile bounce of an inflated goatskin and rough physical scrums. ## Implementation hints 1D positional state machine with 7 zones. First milestone: implement passing and shooting mechanics on the 7-zone track before adding multi-agent defensive clustering.

Download as JSON

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

Download JSON
Cite this page

Traditional Goatskin Ball Game (Tunisia). (n.d.). Games of Countries. https://gamesofcountries.com/games/tn-tunisia/greba

@misc{gamesofcountries-tn-tunisia-greba,
  title = {Traditional Goatskin Ball Game (Tunisia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/tn-tunisia/greba}
}