Formal Specification
Mauritanian pebble distribution game (Oum ed-Diyar) — Formal Specification
Mauritania · dexterity-small · Confidence: medium
← Back to game pageImplementation 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 and treasuries .
- **Player/agent count:** 2 agents ().
- **Turn model:** Alternating sequential turns with dynamic multi-lap sowing within a turn.
## Formal rules
R1. **Board Topology & Initialization:**
- Pits indexed counter-clockwise:
- home pits: Indices .
- home pits: Indices .
- Treasury stores: for , for .
- Initial state: for all (24 stones total); .
R2. **Sowing Action:**
- Active player selects pit index where .
- Player scoops hand , .
- Sowing loop: While :
- .
- , .
R3. **Relap Sowing:**
- If and :
- Sowing continues: Scoop , , and continue counter-clockwise distribution from .
R4. **Capture Condition:**
- If and (the stone landed in a previously empty pit):
- If and opposite pit has :
- **Capture Triggered!**
- .
- .
- Turn ends immediately.
R5. **Victory Condition:**
- The game terminates when an active player has on their turn.
- Any remaining stones in the other player's pits are awarded to that player's treasury.
- Total score = . The player with wins.
## Edge cases
- **Tie at the end condition:** If and , 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: 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 , treasuries , active player , non-capture turn counter.
- **Observable information:** Perfect information — full board state is visible to both agents.
## Action space
- `sow_pit(pit_index)`: where and .
## Playability notes
- **Single-player-vs-AI:** Ideal: standard Minimax with Alpha-Beta pruning or MCTS solves and plays rapidly.
- **Group games ():** 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 JSONCite 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}
}