Formal Specification
Maasai Rapid Mancala — Formal Specification
Tanzania · board-abstract · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Endodoi (Endodoi) — AI-optimized specification
## General idea
A simple two-row mancala with counter-clockwise sowing and single-hole opposite-side
capture — mechanically the plainest of the mancala games documented in this batch.
## Formal model
- **Abstraction taken:** none — discrete deterministic board game.
- **Player/agent count:** 2.
- **Turn model:** strictly alternating.
## Formal rules
R1. Board: 2 rows x N holes, N configurable (source states "commonly 12" but variable).
[gap-fill: treat N=12 as the default unless otherwise specified.]
R2. Setup: 3-6 seeds per hole. [gap-fill: exact standard count is undocumented;
implementers should pick a fixed value in that range (e.g. 4) and document it as an
assumption.]
R3. Sow: take all seeds from a non-empty own-side hole, distribute counter-clockwise one
per hole.
R4. Capture: if the final seed lands in an empty own-side hole, capture that seed plus
the contents of the opponent's directly corresponding hole.
R5. Win condition: when a player cannot move, the opponent claims all remaining board
seeds; highest total captured seeds wins.
## Edge cases
- **Tie at the end:** unaddressed in source; equal captured seed totals resolve as a draw.
- **A player with no legal move:** triggers R5's terminal capture and scoring.
- **Repetition / cycles:** non-capturing seed circulation could in principle cycle; implement 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 remains invariant throughout.
- **Resource exhaustion:** active seeds on the board deplete into captured seed banks.
- **Termination guarantee:** not formally proven; implement a move cap as a safety bound, consistent with other mancala entries in this corpus.
## State representation
- `board`: array[2][N] of seed counts.
- `to_move`: player index.
## Action space
- `sow(hole)` — sow all seeds from a non-empty own-side hole.
## Playability notes
- Deterministic, perfect-information; suited to minimax/MCTS.
- Simplest ruleset among this batch's mancala entries — a good baseline/reference
implementation before tackling Bao's two-phase or Isolo's multi-variant rules.
## Implementation hints
Implement and validate R3-R5 directly; there is no relay-sowing or multi-phase structure
to add, unlike the other mancala entries in this batch.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Maasai Rapid Mancala (Tanzania). (n.d.). Games of Countries. https://gamesofcountries.com/games/tz-tanzania/endodoi
@misc{gamesofcountries-tz-tanzania-endodoi,
title = {Maasai Rapid Mancala (Tanzania)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/tz-tanzania/endodoi}
}