Skip to main content
Formal Specification

Somali Traditional Two-Row Mancala — Formal Specification

Somalia · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Layli Goobalay — AI-optimized specification > **Reconstructed source.** The entry carries a provenance warning: its rules were written from > general knowledge, not read from the two works it cites (Marin 1931; Pankhurst 1996). ## General idea The classic two-row mancala board game of Somalia, played in scooped sand holes or wooden boards with 2 rows of 6 holes and 48 seeds (*Dhagax*). Players execute continuous multi-lap relay sowing in a counter-clockwise direction around the 12-hole perimeter. Its defining capture rule — the ***Ugaas* capture** — fires when the last seed of a sowing lap lands in an **empty hole on the player's OWN side**, capturing that landing seed along with all seeds in the directly opposite opponent hole. This is the exact structural mirror of West African mancalas (like Oware), which capture in opponent territory. Captured seeds are permanently banked, creating a monotone seed reduction, but because captures are not mandatory and players can cycle seeds indefinitely, termination is not formally guaranteed. ## Formal model - **Abstraction taken:** None. Discrete board geometry, deterministic relay sowing, perfect information. - **Player/agent count:** Exactly 2 players seated on opposite rows. - **Turn model:** Strictly alternating sequential turns; each move initiates counter-clockwise relay sowing. ## Formal rules R1. Setup (entry §1): a board of **2 rows of 6 holes** (12 holes total), initialized with **4 seeds per hole** (48 seeds total). R2. Sowing (entry §2): the active player scoops all seeds from an occupied hole on their side and sows them 1 seed per hole in a **counter-clockwise direction** around the entire 12-hole board. R3. Relay sowing (entry §3): if the last sown seed lands in an occupied hole, all seeds in that hole (including the landing seed) are picked up and sowing continues in the same counter-clockwise direction. R4. *Ugaas* Capture (entry §4): if the last seed lands in an **EMPTY hole on the player's OWN side**, AND the directly opposite hole on the opponent's side contains seeds, the player captures both the landing seed and all seeds in the opposite opponent hole. All captured seeds are removed to the captor's bank. R5. Win condition (entry §5): the **first player to capture 25 or more seeds** wins the game. R6. Starting eligibility: [gap-fill: the entry does not specify whether singleton holes (1 seed) may be scooped to initiate sowing; taking the rule as written allows any occupied hole with >= 1 seed]. R7. Inability to move: [gap-fill: the entry does not specify whether a player with no seeds on their side forfeits the game or if remaining seeds are swept by the opponent when neither can reach 25]. ## Edge cases - Tie at the end: unaddressed; if uncaptured seeds are divided such that both players finish with 24 seeds (e.g. 24-24 tie), the entry defines no tiebreak or draw rule. - A player with no legal move: unaddressed; if a player has only empty holes on their side, the entry provides no pass or seed-sweep mechanism. - Repetition / cycles: unaddressed; since relay sowing moves seeds around the board and captures require landing in an empty home hole opposite occupied pits, players may circulate seeds in non-capturing loops indefinitely. - Simultaneous claims on one position: not applicable; turns are strictly sequential and holes resolve one seed at a time during sowing. - Elimination mid-round and turn-order repair: seeds are removed to player banks upon capture (R4), but players are not eliminated; strict two-player alternation is invariant. - Resource exhaustion: seeds on the active board decrease monotonically with each capture, banking toward the 25-seed victory threshold (R5). - Termination guarantee: not guaranteed; while captures monotonically drain seeds from the active board toward the 25-seed threshold, captures are not mandatory and no repetition rule prevents infinite non-capturing circulation. ## State representation - Persistent state: `holes[12]` ∈ {0..48}, `bank[2]` ∈ {0..48}, `active_player` ∈ {0, 1}. - Per-turn ephemeral state: `current_hole`, `hand_seeds`, `relay_steps`. - Observable information: fully observable, perfect information. No randomness or hidden state. ## Action space - `sow(hole_index)`: active player selects an occupied hole on their side (0..5) to initiate counter-clockwise relay sowing (R2). All relay laps and Ugaas captures resolve deterministically (R3, R4). ## Playability notes - Single-player-vs-AI: excellent combinatorial search space; the Ugaas capture creates sharp tactical geometry where creating empty home pits becomes an offensive trap. - Reducing n > 4 to 2 agents: not applicable; inherently a two-player game. - Physical-skill games: not applicable; pure abstract board game. - What is lost: the traditional sand-scooping setting, camel dung counter textures, and poetic oral pacing of Somali pastoralists. ## Implementation hints Index the 12 holes sequentially 0..11 in counter-clockwise order: Player 0 owns holes 0..5 (left-to-right), Player 1 owns holes 6..11 (right-to-left). The opposite hole for `i ∈ [0..5]` is `11 - i`. Ugaas capture triggers if and only if the final seed of a relay sequence lands in `i ∈ own_holes`, `holes[i] == 1` (i.e. was empty before landing), and `holes[11 - i] > 0`. Banked seeds accumulate in `bank[active_player]`, and game ends immediately when `bank[p] >= 25`. Add cycle detection to break infinite relay loops in AI search. Suggested first milestone: 2x6 counter-clockwise relay loop with Ugaas capture accounting.

Download as JSON

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

Download JSON
Cite this page

Somali Traditional Two-Row Mancala (Somalia). (n.d.). Games of Countries. https://gamesofcountries.com/games/so-somalia/layli-goobalay

@misc{gamesofcountries-so-somalia-layli-goobalay,
  title = {Somali Traditional Two-Row Mancala (Somalia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/so-somalia/layli-goobalay}
}