Skip to main content
Formal Specification

Maasai Speed Mancala — Formal Specification

Kenya · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: directGap-fills: 3
# Enkeshui (Enkeshui) — AI-optimized specification ## General idea A two-row mancala game with a simultaneous "sowing race" to decide first player, relay sowing, a capture-forfeiture rule tied to whether the initial sow relays, and permanently protected 3-seed "bull" pits. ## Formal model - **Abstraction taken:** the simultaneous real-time "sowing race" opening (R3 in the entry) is modeled as a resolved coin-flip-equivalent for turn-based engines, since simulating simultaneous physical sowing speed is out of scope. [gap-fill: exact Maasai naming for whether turn order is simultaneous opening vs alternate-from-start is undocumented; implement as simultaneous race or coin-toss first-mover] - **Player/agent count:** 2. - **Turn model:** alternating after the opening race. ## Formal rules R1. Board: 2 rows, board length configurable (8/10/12 pits per row per local convention); 48 seeds total. [gap-fill: exact starting layout is not fully specified by the source beyond "alternating 3-seed and empty pits" — implementers must choose a concrete layout consistent with that pattern and document it as an assumption.] R2. Opening: resolve first-move advantage via the abstracted race (see Formal model); default to a coin flip in a turn-based implementation. R3. Sow: take all seeds from a chosen own-side pit, sow counter-clockwise one per pit; if the last seed lands in an occupied pit, continue relay-sowing from there. R4. Capture eligibility: if a turn's initial sow (the first lap, before any relay is triggered) itself causes a relay, no capture may be made for the remainder of that turn. [gap-fill: the precise capture condition otherwise (which pit, whose seeds) is not fully specified by the source; implementers should follow the general East African mancala convention used elsewhere in this corpus (landing in an empty own pit opposite an occupied enemy pit) pending a better source, and flag this as an assumption.] R5. Bull pits: any pit reaching exactly 3 seeds becomes permanently uncapturable and unemptiable ("bull"). A sow that ends in a bull pit stops there (no relay continues out of a bull). R6. Win condition: when a player cannot move, the game ends; highest total captured seeds wins. ## Edge cases - **Tie at the end:** race tie at opening is undocumented in source; a turn-based implementation should resolve ties by re-flipping or first-player assignment. - **A player with no legal move:** if all non-bull pits are empty but bulls remain, game ends per R6; bulls are never captured, consistent with R5. - **Repetition / cycles:** unaddressed in source; non-capturing seed circulation could theoretically cycle; implementers should impose a move cap. - **Simultaneous claims on one position:** unaddressed in source; simultaneous opening race resolves by earliest completion or coin flip. - **Elimination mid-round and turn-order repair:** not applicable; two-player duel with no player elimination. - **Resource exhaustion:** bulls permanently remove seeds from active circulation, bounding the available material. - **Termination guarantee:** not formally proven; bulls remove seeds from circulation permanently, which bounds the game, but implementers should impose a move cap as a safety measure regardless. ## State representation - `board`: array[2][N] of seed counts, N = board length (8, 10, or 12; configurable). - `bulls`: set of (player, pit) marked as permanently protected, per R5. - `to_move`: player index. - `capture_eligible`: boolean, set per R4 at the start of each turn. ## Action space - `sow(pit)` — sow all seeds from a non-empty, non-bull own-side pit. ## Playability notes - Deterministic once the opening race is abstracted; suited to minimax/MCTS after that point. - The bull mechanic (R5) is the game's distinctive tactical feature and should be weighted accordingly in any evaluation heuristic — protected material changes the effective seed count available for capture as the game progresses. ## Implementation hints Implement basic sowing and the bull-protection rule (R3, R5) first and validate against the source's description; treat the capture rule (R4) and exact starting layout (R1) as explicitly flagged assumptions pending a primary Maasai-language or ethnographic source, since the Wikipedia summary used here is itself derived from a secondary compilation.

Download as JSON

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

Download JSON
Cite this page

Maasai Speed Mancala (Kenya). (n.d.). Games of Countries. https://gamesofcountries.com/games/ke-kenya/enkeshui

@misc{gamesofcountries-ke-kenya-enkeshui,
  title = {Maasai Speed Mancala (Kenya)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ke-kenya/enkeshui}
}