Skip to main content
Formal Specification

Traditional Wool Ball Game — Formal Specification

Algeria · ball-team · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Kourat el-Souf — AI-optimized specification ## General idea A discretized baseball/rounders-like base-running game. Batting agents launch a wool ball into a 2D field grid and sprint between home and a turning base. Fielders attempt airborne catches or retrieve and throw the ball at moving runners to force outs and trigger team role switches. ## Formal model - **Abstraction taken:** The 40-meter field is mapped to a 2D grid with Home Base at `(0, 0)`, Turning Base at `(0, 30)`, and Fielding Grid `[-20..20, 5..40]`. Sprinting, ball trajectory, and throwing accuracy are discretized into 1-second ticks. - **Player/agent count:** 2 teams of 6 agents (Team 0 and Team 1). - **Turn model:** Alternating team innings (4 complete innings total). Within an inning, discrete play-resolution cycles. ## Formal rules R1. Setup: Batting team queues at `Home(0, 0)`. Fielding team deploys 6 fielders across `FieldGrid`. Innings tracker `Inning = 1`, `Outs = 0`, `Score = [0, 0]`. R2. The Hit: - Active batter executes `strike_ball(power, angle)`. - Landing coordinate: `(x_land, y_land) = f(power, angle) + Noise`. - Fly Catch Check: If any fielder is within `dist <= 3m` of landing at time-of-flight, fly catch probability `P_catch = 0.80`. A successful fly catch immediately generates `1 Out`. R3. The Run: - If uncaught, batter begins sprinting `Home -> Base(0, 30) -> Home`. Runner moves at `speed = 5m/tick`. - Nearest fielder moves toward ball at `speed = 4m/tick`, picks it up, and chooses either: - `throw_at_runner(target_pos)`: Throw accuracy `P_hit = 0.85 - 0.02 * dist_to_runner`. - `pass_to_teammate(fielder_id)`: Pass success `P_pass = 0.90`. R4. Out & Score Resolution: - If `throw_at_runner()` hits while runner is outside base boundaries, runner is `Out` (`Outs += 1`). - If runner reaches `Base(0, 30)` and returns to `Home(0, 0)` without being hit, Batting Team earns `+1 point`. R5. Inning Switch: When `Outs == 3`, the batting and fielding teams swap roles. R6. [gap-fill] Win Condition: The team with the higher score after 4 full innings (8 half-innings) wins. ## Edge cases - Tie at the end condition: [gap-fill] If scores are tied after 4 innings, an extra sudden-death inning is played. - A player with no legal move: Not applicable; batting, running, fielding actions are always available. - Repetition / cycles: Bounded strictly by 3 outs per half-inning and 4 total innings. - Simultaneous claims on the same resource or position: Resolved by ball flight time vs. runner displacement calculations. - Player elimination mid-round; turn order repair: Batter out transitions to next batter in the queue. - Resource exhaustion: Monotonic decrement of outs and innings. - Termination guarantee: Enforced by the 4-inning hard limit. ## State representation - Persistent state: `scores: Array[2][int]`, `inning: int in [1..4]`, `outs: int in [0..3]`, `active_team: int in {0, 1}`. - Ephemeral state: `runner_pos: (float, float)`, `ball_pos: (float, float)`, `fielder_positions: Array[6][(float, float)]`. - Observability: Complete public information. ## Action space - `strike_ball(power, angle)`: Batting action. - `throw_at_runner()`: Fielding throw. - `pass_to_teammate(fielder_id)`: Fielding assist pass. ## Playability notes - Single-player-vs-AI: Highly playable as a fielding strategy or batting timing game against an AI team. - Group games (n>4): Modeled with decentralized multi-agent fielding coordination. - Physical-skill games: Parameterized via velocity distributions and throwing precision. - What is lost: The sting of catching a firm wool ball with bare hands on a windy high plain. ## Implementation hints 2D spatial simulation loop. First milestone: implement batting ball flight, 1D runner position along the base path, and fielder throw hit checks.

Download as JSON

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

Download JSON
Cite this page

Traditional Wool Ball Game (Algeria). (n.d.). Games of Countries. https://gamesofcountries.com/games/dz-algeria/kourat-el-souf

@misc{gamesofcountries-dz-algeria-kourat-el-souf,
  title = {Traditional Wool Ball Game (Algeria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/dz-algeria/kourat-el-souf}
}