Skip to main content
Formal Specification

Seven Stones — Formal Specification

Palestine · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Sab' Hijar — AI-optimized specification ## General idea A Palestinian outdoor team sport combining target knocking, stack reconstruction, and dodgeball tag. Attackers knock down a pyramid of 7 flat stones with a ball, and must reconstruct the 7-stone stack while evading passes and ball throws from defenders attempting to tag ("burn") them out. ## 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 vector raycasts. - **Player/agent count:** 2 teams of 4 to 6 agents (Tattack,Tdef). - **Turn model:** 1 Phased Target Throw, followed by simultaneous real-time state ticks. ## Formal rules R1. **Initial state:** Central stack at (0,0) with height S=7. R2. **Opening throw:** Tattack agents sequentially throw a ball at the stack from distance D=5. - If all attackers miss: Inning ends, teams swap roles immediately with 0 points scored. - If hit occurs: Stack topples (S=0), and real-time phase commences. R3. **Real-time phase actions:** - **Attackers (Tattack):** Move on grid. When 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, that attacker is eliminated ("burned") for the round. R5. **Inning resolution:** - If S=7 is fully rebuilt: Tattack scores 1 point and wins the inning; teams reset with Tattack retaining throwing role. - If all attackers are eliminated before S=7: Tdef wins the inning (scores 0, earns throwing role for next inning). R6. [gap-fill] Match termination:** First team to achieve 3 points wins the match. ## Edge cases - **Tie at the end condition:** If last attacker is hit on the exact tick the 7th stone is placed, placement succeeds (attacker victory) [gap-fill]. - **A player with no legal move:** Grid moves and passes always available. - **Repetition / cycles:** Bounded by 120 ticks per inning [gap-fill]. - **Simultaneous claims:** Handled by spatial coordinate checks. - **Player elimination mid-round:** Eliminated attackers enter spectator state. - **Resource exhaustion:** 7 stones and 1 ball are constant. - **Termination guarantee:** Provably terminates via 120-tick ceiling per inning and 3-point match limit. ## State representation - **Persistent state:** `scores: Dict[Team, int]`, `active_roles: Dict[Team, Role]`. - **Ephemeral state:** `stack_height: int \in [0,7]`, `ball_position: (x,y)`, `ball_holder: Optional[AgentID]`, `agent_positions: Dict[AgentID, (x,y)]`, `active_attackers: Set[AgentID]`. - **Observable information:** Fully observable state. ## Action space - `move(dx, dy)`: Grid step. - `stack_stone()`: Valid at (0,0) for attacker. - `pass_ball(target_id)`: Defender pass. - `throw_at(target_id)`: Defender shot. ## Playability notes - **Single-player-vs-AI:** Operates as a fast-paced survival builder against AI hunting guards. - **Group games (n>4):** Native multi-agent team architecture. - **Physical-skill games:** Dodging and throwing precision abstracted into line-of-sight and hit probabilities. - **What is lost:** Physical stone stacking tactile finesse and neighborhood street cheers. ## Implementation hints Standard multi-agent grid game with simple passing and tagging raycasts.

Download as JSON

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

Download JSON
Cite this page

Seven Stones (Palestine). (n.d.). Games of Countries. https://gamesofcountries.com/games/ps-palestine/sab-hijar

@misc{gamesofcountries-ps-palestine-sab-hijar,
  title = {Seven Stones (Palestine)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ps-palestine/sab-hijar}
}