Skip to main content
Formal Specification

Hopscotch (Al-Hah) — Formal Specification

Jordan · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 1
# Al-Hajlah — AI-optimized specification ## General idea A physical hopscotch game requiring balance and throwing accuracy. In the AI model, the physical acts of throwing the marker and hopping through the grid are abstracted into stochastic checks based on player balance and aiming stats. This preserves the progression of target rectangles (1 through 6), boundary lines, and turn rotations. ## Formal model - **Abstraction taken:** Throwing the marker into rectangles and hopping over cells are replaced by probability distributions. - **Player/agent count:** 2 to n players. - **Turn model:** Sequential, alternating. ## Formal rules R1. **Setup:** 1.1. The court consists of 6 rectangles. 1.2. Each player starts with their target level set to 1. R2. **Turn Structure:** 2.1. On their turn, the active player attempts to throw their marker (*Al-Gharrah*) into their current target level (1 to 6). 2.2. **Throw Resolution:** The throw is resolved stochastically based on player accuracy. - If the throw fails (lands on a line or outside the target rectangle), the player commits a foul, their turn immediately ends, and play passes. 2.3. **Hop Resolution:** If the throw succeeds, the player must execute a sequence of hops through the grid (skipping the target rectangle, landing with both feet in 4-5, turning in 6, returning, picking up the marker, and hopping out). - Each hop step has a success probability determined by the player's balance stat and target difficulty. - If any hop fails (loss of balance or stepping on a line), the player commits a foul, their turn ends, and they must leave their marker in the target rectangle. R3. **Progression:** 3.1. If both the throw and hop sequence are completed successfully, the player's target level increases by 1 for their next turn. 3.2. If a player failed their previous turn, their marker remains on the board in that failed rectangle. On their next turn, they skip the throw phase and immediately attempt the hop sequence to retrieve their marker. R4. **Fouls (Turn Transfer):** 4.1. Committing a foul immediately transfers the turn to the next player in rotation. R5. **Winning:** 5.1. The first player to successfully complete level 6 (and exit the court with their marker) wins the game. 5.2. [gap-fill] If multiple players complete level 6 in the same round rotation, they share the victory or play a single-throw tie-breaker round. ## Edge cases - **Tie at the end condition:** Handled by R5.2. - **A player with no legal move:** Not applicable; players can always attempt their level. - **Repetition / cycles:** Bounded by positive lower limits on success rates, guaranteeing that players will eventually succeed and advance to win. - **Simultaneous claims on the same resource:** Marker positions are independent per player; multiple markers can rest in the same grid without interfering with each other. - **Player elimination mid-round:** Not applicable. - **Resource exhaustion:** Not applicable. - **Termination guarantee:** Guaranteed by the strictly increasing levels, a finite court size (6), and bounded stochastic success probabilities. ## State representation - **Persistent state:** Current target level (1 to 6) per player, marker position on board (null, or cell index) per player, turn order queue, active player index. - **Per-turn ephemeral state:** Throw outcome, hop sequence success flags. - **Observable information:** Fully observed. ## Action space - `execute_turn()`: Triggers the multi-step stochastic throw and hop sequence for the active player. ## Playability notes - **Single-player-vs-AI:** Natural; the player races against AI opponents with identical mechanics. - **Group games:** Generalizes cleanly to any n. - **What is lost in the adaptation:** The physical sensation of hopping on one leg, physical fatigue, and muscle coordination are fully abstracted. ## Implementation hints Break down the turn execution into two sequential function calls: `resolve_throw()` and `resolve_hops()`. Use a simple random number generator to resolve each step based on the player's attributes.

Download as JSON

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

Download JSON
Cite this page

Hopscotch (Al-Hah) (Jordan). (n.d.). Games of Countries. https://gamesofcountries.com/games/jo-jordan/al-hajlah

@misc{gamesofcountries-jo-jordan-al-hajlah,
  title = {Hopscotch (Al-Hah) (Jordan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/jo-jordan/al-hajlah}
}