Skip to main content
Formal Specification

Mauritanian pebble distribution game (Oum ed-Diyar) — Formal Specification

Mauritania · dexterity-small · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Krour — AI-optimized specification ## General idea A 2-player Saharan mancala game played on an 8-pit board (2 rows of 4 pits + 2 end treasuries) with 24 stones. Players execute multi-lap sowing in a counter-clockwise loop, capturing stones from opposite opponent pits when the final sown stone lands in an empty home pit. ## Formal model - **Abstraction taken:** Direct discrete representation of an 8-pit circular array with 2 treasury stores. Board state is an array P∈ℕ8 and treasuries (T0,T1)∈ℕ2. - **Player/agent count:** 2 agents (P0,P1). - **Turn model:** Alternating sequential turns with dynamic multi-lap sowing within a turn. ## Formal rules R1. **Board Topology & Initialization:** - Pits indexed 0…7 counter-clockwise: - P0 home pits: Indices {0,1,2,3}. - P1 home pits: Indices {4,5,6,7}. - Treasury stores: T0 for P0, T1 for P1. - Initial state: P[i]=3 for all i∈[0,7] (24 stones total); T0=0,T1=0. R2. **Sowing Action:** - Active player k selects pit index i∈Home(k) where P[i]>0. - Player scoops hand H←P[i], P[i]←0. - Sowing loop: While H>0: - i←(i+1)(mod8). - P[i]←P[i]+1, H←H−1. R3. **Relap Sowing:** - If H==0 and P[i]>1: - Sowing continues: Scoop H←P[i], P[i]←0, and continue counter-clockwise distribution from i+1. R4. **Capture Condition:** - If H==0 and P[i]==1 (the stone landed in a previously empty pit): - If i∈Home(k) and opposite pit j=(7−i) has P[j]>0: - **Capture Triggered!** - Tk←Tk+P[i]+P[j]. - P[i]←0,P[j]←0. - Turn ends immediately. R5. **Victory Condition:** - The game terminates when an active player has ∑i∈Home(k)P[i]==0 on their turn. - Any remaining stones in the other player's pits are awarded to that player's treasury. - Total score = Tk. The player with Tk>12 wins. ## Edge cases - **Tie at the end condition:** If T0=12 and T1=12, the match is a Draw. - **A player with no legal move:** Handled strictly by R5: empty home row triggers end-of-game board sweep. - **Repetition / cycles:** [gap-fill] If 40 consecutive sowing turns occur without a single capture, remaining stones are divided equally and the game ends. - **Simultaneous claims on the same resource or position:** Turns are strictly sequential; pit updates are atomic. - **Player elimination mid-round; turn order repair:** Not applicable — 2-player zero-sum game. - **Resource exhaustion:** Strictly conservative token count: ∑P[i]+T0+T1=24 invariants hold at all ticks. - **Termination guarantee:** Guaranteed by monotonic transfer of stones from pits into treasuries combined with the 40-turn non-capture cycle limit. ## State representation - **Persistent state:** Pit array P[0..7]∈ℕ8, treasuries (T0,T1), active player ∈{0,1}, non-capture turn counter. - **Observable information:** Perfect information — full board state is visible to both agents. ## Action space - `sow_pit(pit_index)`: where pit_index∈Home(k) and P[pit_index]>0. ## Playability notes - **Single-player-vs-AI:** Ideal: standard Minimax with Alpha-Beta pruning or MCTS solves and plays rapidly. - **Group games (N>2):** Not applicable (pure 2-player abstract). - **Physical-skill games:** Not applicable (pure discrete mancala board game). - **What is lost in the adaptation:** The rhythmic clicking of quartz pebbles in sand pits and grandmothers' gentle storytelling. ## Implementation hints - Represent board as an array of 8 integers plus 2 treasury integers; simulate sowing with a simple while-loop. - First milestone: Implement 8-pit circular array with single-pit selection and basic empty-pit capture detection.

Download as JSON

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

Download JSON
Cite this page

Mauritanian pebble distribution game (Oum ed-Diyar) (Mauritania). (n.d.). Games of Countries. https://gamesofcountries.com/games/mr-mauritania/krour

@misc{gamesofcountries-mr-mauritania-krour,
  title = {Mauritanian pebble distribution game (Oum ed-Diyar) (Mauritania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/mr-mauritania/krour}
}