Skip to main content
Formal Specification

Mauritanian target stone pitching (L-Mgala'a) — Formal Specification

Mauritania · dexterity-throw · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Om-Gla'a — AI-optimized specification ## General idea A precision target-throwing and stone-pitching competition on a 2D gravel terrain. Players take turns casting 3 stones from a throwing line toward a central target stake surrounded by concentric scoring rings. Strategic mechanics include direct topple hits, ring zone positioning, and deliberate displacement collisions against opponent stones. ## Formal model - **Abstraction taken:** The 3D ballistics, ground bounce, and rolling friction of rough desert stones are modeled via a 2D vector landing distribution: 𝐱final=𝐱aim+𝛜, with dispersion noise 𝛜∼𝒩(0,σ2(d,skill)). Rigid body circle-circle collisions model stone-target and stone-stone displacement. - **Player/agent count:** N players (N∈[2,6], default N=2). - **Turn model:** Sequential turn rotation across multi-throw innings (3 throws per agent per round). ## Formal rules R1. **Target Geometry & Initial Setup:** - Target peg located at (0,0) with collision radius Rpeg=0.1m, state ∈{upright,toppled}. - Concentric scoring zones: - Inner Ring (Z1): r≤0.5m (worth +3 points). - Outer Ring (Z2): 0.5m<r≤1.5m (worth +1 point). - Throwing line at distance Y=−10.0m. - Each agent holds a pool of 3 stones per round. R2. **Throwing Action:** - On active turn, agent executes `throw_stone(target_x, target_y, power, throw_type)`: - `throw_type` ∈{lob,direct_strike}. - Landing coordinates (X,Y)=(xtarget,ytarget)+𝛜. R3. **Collision & Scoring Evaluation:** - **Direct Target Hit:** If thrown stone collides with target peg (‖(X,Y)‖≤Rpeg): - Target is knocked down (`status = toppled`). - Active thrower scores +5 points immediately. - Peg is immediately restored to upright position at (0,0). - **Stone-Stone Collision:** If thrown stone collides with a previously thrown stationary stone: - Elastic momentum transfer displaces the resting stone to new coordinates (X′,Y′). - **End-of-Round Ring Scoring:** - After all 3N stones are thrown, resting positions of all stones are evaluated: - Each stone in Z1: +3 points to owner. - Each stone in Z2: +1 point to owner. R4. **Victory Condition:** - Rounds continue with players clearing and retrieving stones after each round. - The first player to reach or exceed Starget=21 points wins the match. ## Edge cases - **Tie at the end condition:** If multiple players exceed 21 points on the same round, the player with the highest total score wins; [gap-fill] if identical, 1 sudden-death single-stone throw at 15m determines the winner. - **A player with no legal move:** Throwing an available stone within parameter bounds is always legal. - **Repetition / cycles:** Bounded by monotonic point accumulation; each round yields ≥1 point, guaranteeing match end within finite rounds. - **Simultaneous claims on the same resource or position:** Throws are strictly sequential; physics resolver handles multi-stone collisions deterministically. - **Player elimination mid-round; turn order repair:** If an agent drops out, their throws are skipped in subsequent rotations. - **Resource exhaustion:** Exactly 3 stones per player per round. - **Termination guarantee:** Guaranteed by monotonic score growth toward 21 points. ## State representation - **Persistent state:** Match scores (S1,…,SN), target score Starget=21, current round index, throwing distance D=10m. - **Per-round dynamic state:** List of all thrown stones on field {(player_id,Xk,Yk)}, target peg state. - **Observable information:** Fully observable 2D state for all agents. ## Action space - `throw_stone(target_x, target_y, power, throw_type)`: - `target_x, target_y` ∈[−2.0,2.0]m. - `power` ∈(0,1.0]. - `throw_type` ∈{lob,direct_strike}. ## Playability notes - **Single-player-vs-AI:** Highly playable: AI calculates optimal trade-offs between aiming directly for a 5-point peg topple vs playing a safe positional 3-point placement in the inner ring or knocking away a human stone. - **Group games (N>2):** Scales smoothly with standard round-robin rotation. - **Physical-skill games:** Throwing precision parameterized via distance-scaled variance σ2(d). - **What is lost in the adaptation:** The physical weight of rough desert quartz stones and judging wind gusts across an open plain. ## Implementation hints - Implement as a 2D physics field with circular bounding boxes and elastic collision vectors. - First milestone: Implement 1v1 round of 3 throws each with direct peg hit detection and concentric ring scoring.

Download as JSON

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

Download JSON
Cite this page

Mauritanian target stone pitching (L-Mgala'a) (Mauritania). (n.d.). Games of Countries. https://gamesofcountries.com/games/mr-mauritania/om-glaa

@misc{gamesofcountries-mr-mauritania-om-glaa,
  title = {Mauritanian target stone pitching (L-Mgala'a) (Mauritania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/mr-mauritania/om-glaa}
}