Skip to main content
Formal Specification

Meru Two-Row Mancala — Formal Specification

Kenya · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Kiothi (Kiothi) — AI-optimized specification ## General idea A 2x10 two-row mancala game where sowing that crosses into the opponent's row and returns captures seeds, with a special leftmost-pit capture rule. ## Formal model - **Abstraction taken:** none — a discrete deterministic board game. - **Player/agent count:** 2. - **Turn model:** strictly alternating. ## Formal rules R1. Board: 2 rows x 10 pits. Setup: 30 seeds per player, placed 6 per pit in the 5 rightmost pits of their own row; each player may then freely redistribute one pit's contents across the board before play starts. R2. Sow: take all seeds from one non-empty own-side pit, distribute one per pit counter-clockwise. R3. No-capture stop: if the last sown seed lands in an empty pit on the opponent's row, the turn ends with no capture. R4. Cross-back capture: if the sowing crosses the opponent's row and the last seed lands back on the player's own row, capture those seeds plus the contents of the directly opposite pit. [gap-fill: the source's description of "crossing" is summarized, not a formal path definition — implementers should treat this as: the sow passes through the opponent's row and the final seed's landing pit is on the sower's own row]. R5. A pit that has never been used as a sowing source cannot have its contents captured. R6. Leftmost-pit special capture: if the final seed lands in the leftmost pit of the player's own row, and the directly opposite pit plus its adjacent non-empty pits hold seeds, capture all of them. R7. Win condition: when a player has no legal sow (no non-empty own-side pit), the opponent captures all remaining board seeds; highest total captured seeds wins. ## Edge cases - **Tie at the end:** unaddressed in source; [gap-fill: tie-break when captured totals are equal is undocumented in source]. - **A player with no legal move:** triggers R7's terminal capture and scoring. - **Repetition / cycles:** non-capturing seed circulation could theoretically cycle; implementers should impose a move cap as a safety bound. - **Simultaneous claims on one position:** alternating sowing turns preclude simultaneous claims on single pits. - **Elimination mid-round and turn-order repair:** not applicable; no player elimination; 2-player alternation is invariant throughout. - **Resource exhaustion:** seeds on the board deplete into captured banks upon terminal capture. - **Termination guarantee:** not formally proven in the source; implementers should impose a move cap as a safety bound, consistent with other mancala entries in this corpus. ## State representation - `board`: array[2][10] of seed counts. - `used_pits`: set of pits ever used as a sow source, per R5. - `to_move`: player index. ## Action space - `sow(pit)` — sow all seeds from a non-empty own-side pit. ## Playability notes - Deterministic perfect-information game; suited to minimax/MCTS. - Branching factor <= 10 per turn (number of non-empty own-side pits). ## Implementation hints Implement R2-R3 (basic sow, no-capture stop) first and verify against the source's worked description before adding R4's cross-back capture and R6's leftmost-pit special case, since both depend on correctly tracking which pits were crossed during a single sow.

Download as JSON

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

Download JSON
Cite this page

Meru Two-Row Mancala (Kenya). (n.d.). Games of Countries. https://gamesofcountries.com/games/ke-kenya/kiothi

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