Skip to main content
Formal Specification

Seven Stones — Formal Specification

Iraq · ball-team · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 3
# Tubat Umm Al-Sab'a — AI-optimized specification ## General idea A traditional Iraqi seven-stones street game (*Tubat Umm Al-Sab'a* / *Heft Berde*). Attackers knock down a central stack of 7 flat stones with a ball, and must reconstruct the 7-stone tower in order while dodging ball throws from defenders who pass the ball to eliminate ("burn") them. ## Formal model - **Abstraction taken:** Arena modeled as a 2D discrete grid. The 7 stones are modeled as a discrete stack counter S∈[0,7]. Ball passing and throwing modeled via grid raycasts. - **Player/agent count:** 2 teams (Tattack,Tdef) of 4 to 8 agents. - **Turn model:** 1 Opening Knockdown Throw, followed by real-time synchronized state ticks. ## Formal rules R1. **Initial setup:** Central stone tower at (0,0) with height S=7. R2. **Opening throw:** Attackers take turns throwing ball from distance D=6. - If all attackers miss: Inning ends, teams swap roles immediately with 0 points scored. - If hit occurs: Tower topples (S=0), and real-time phase commences. R3. **Real-time phase actions:** - **Attackers (Tattack):** Move on grid. At (0,0), can execute `stack_stone()`, increasing S←S+1. - **Defenders (Tdef):** Move on grid, execute `pass_ball(defender_id)` or `throw_at(attacker_id)`. Defenders holding the ball cannot move. R4. **Elimination:** If an attacker is hit by a defender's ball throw below the waist, that attacker is eliminated for the round. R5. **Inning resolution:** - If S=7 is fully rebuilt: Tattack scores 1 point and wins the inning; teams reset with Tattack throwing. - If all attackers are eliminated before S=7: Tdef wins the inning (scores 1 point, earns throwing role) [gap-fill]. R6. **Victory condition:** First team to achieve 5 points wins the match. R7. [gap-fill] Inning ceiling:** Maximum 150 ticks per inning. ## Edge cases - **Tie at the end condition:** If last attacker is hit on exact tick of 7th stone placement, placement succeeds (attacker victory) [gap-fill]. - **A player with no legal move:** Grid moves and passes always available. - **Repetition / cycles:** Bounded by 150 ticks per inning. - **Simultaneous claims:** Spatial coordinate occupancy resolves ties. - **Player elimination mid-round:** Eliminated attackers enter spectator queue. - **Resource exhaustion:** 7 stones and 1 ball are constant. - **Termination guarantee:** Provably terminates via 150-tick ceiling and 5-point match limit. ## State representation - **Persistent state:** `scores: Dict[Team, int]`, `throwing_team: Team`. - **Ephemeral state:** `tower_height: int \in [0,7]`, `ball_position: (x,y)`, `ball_holder: Optional[AgentID]`, `active_attackers: Set[AgentID]`. - **Observable information:** Fully observable state. ## Action space - `move(dx, dy)`: Grid step. - `stack_stone()`: Valid for attacker at (0,0). - `pass_ball(target_id)`: Defender pass. - `throw_at(target_id)`: Defender shot. ## Playability notes - **Single-player-vs-AI:** Operates as a fast-paced builder survival game against AI guards. - **Group games (n>4):** Native multi-agent team coordination. - **Physical-skill games:** Dodging agility and throwing accuracy abstracted into raycast probabilities. - **What is lost:** Tactile stone balancing finesse and enthusiastic Kurdish/Iraqi street chants (*"Saba'a!"*). ## Implementation hints Standard multi-agent grid game with vector raycast passing and tagging checks.

Download as JSON

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

Download JSON
Cite this page

Seven Stones (Iraq). (n.d.). Games of Countries. https://gamesofcountries.com/games/iq-iraq/tubat-umm-al-saba

@misc{gamesofcountries-iq-iraq-tubat-umm-al-saba,
  title = {Seven Stones (Iraq)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/iq-iraq/tubat-umm-al-saba}
}