Skip to main content
Formal Specification

South African Twelve Men's Morris — Formal Specification

South Africa · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: directGap-fills: 3
# Morabaraba — AI-optimized specification > **Shared rule text — read before implementing.** The entry's rules are byte-identical to those of > `ls-lesotho/morabaraba-ls` and `mz-mozambique/muravarava`. They represent a shared Southern African regional Twelve Men's Morris ruleset rather than > a unique South Africa derivation. Local pastoral terminology and ceremonial variations, if any, > are not recorded in the rule text. > **Capacity note in source entry.** The entry specifies **12 pieces (cows) per player on a 24-point board**, > totaling **24 pieces on 24 points**. If players place all 24 cows without forming a mill (which grants a > capture), the board completely fills with **zero vacant points**, preventing Phase 2 sliding. An > implementation must provide deadlock handling for saturated placements or recognize mill-formation > as necessary for transition. ## General idea Southern Africa's premier alignment board game, Morabaraba is a three-phase Twelve Men's Morris variant played on a 24-point grid featuring three concentric squares joined by orthogonal and diagonal lines. Players alternate placing 12 pieces (*cows* / *dikgomo*), sliding them along connected lines, and finally "flying" when reduced to 3 cows. Forming a 3-in-a-row (mill) allows shooting (capturing) one opponent cow. A player wins by reducing the opponent to 2 cows (making mills impossible) or immobilizing all opponent cows. ## Formal model - **Abstraction taken:** None. Discrete point-line graph topology, deterministic mechanics, perfect information. - **Player/agent count:** Exactly 2 players, alternating. - **Turn model:** Three-phase sequential alternating turns: Phase 1 (Drop/Placement), Phase 2 (Sliding), and Phase 3 (Flying for a player with exactly 3 cows). ## Formal rules R1. Setup (entry §1): played on a **24-point board** (3 concentric squares connected at side midpoints and corner diagonals). Each player holds **12 cows** in hand. R2. Phase 1 — Placement (entry §2): players alternate placing 1 cow onto any vacant point. Forming a mill (3 friendly cows in a straight line) grants the right to **shoot/capture 1 opponent cow** [gap-fill: the entry specifies 12 cows each on 24 points; if no mills are formed during placement, Phase 1 ends with zero vacant points, requiring an explicit deadlock resolution rule]. R3. Phase 2 — Movement (entry §3): after all 24 cows are placed, players alternate sliding 1 friendly cow along marked lines to an adjacent vacant point. Forming a mill shoots 1 opponent cow [gap-fill: the entry does not specify whether cows inside active opponent mills are protected from being shot when non-mill cows exist]. R4. Phase 3 — Flying (entry §4): when a player is **reduced to exactly 3 cows**, their cows may "fly" (jump) to **any vacant point on the board**, ignoring line connectivity. R5. Win condition (entry §5): a player wins by **reducing the opponent to 2 cows** or by **blocking all legal moves** of the opponent. R6. Simultaneous mills: [gap-fill: the entry does not specify whether forming two mills with a single move allows shooting two opponent cows or only one]. ## Edge cases - Tie at the end: unaddressed; the entry specifies two decisive win conditions (reduction to 2 cows or blocking) and provides no three-fold repetition or 50-move non-capture draw rule. - A player with no legal move: explicitly addressed as a loss condition in R5 ("block all moves"). - Repetition / cycles: unaddressed; Phase 2 sliding and Phase 3 flying can cycle between identical board positions indefinitely without captures; no cycle-breaking rule is stated. - Simultaneous claims on one position: not applicable; strictly alternating turns, and every point holds at most one cow. - Elimination mid-round and turn-order repair: cows are shot and removed from the board upon mill formation, but players remain active; strict two-player alternation is preserved. - Resource exhaustion: hand pieces deplete monotonically from 12 to 0 in Phase 1; board pieces deplete monotonically via mill captures toward the 2-cow threshold. - Termination guarantee: not guaranteed; Phase 2 sliding and Phase 3 flying permit infinite non-capturing cycles, and no repetition or move-limit rule is defined. ## State representation - Persistent state: `board[24]` ∈ {empty, p1, p2}, `hand[2]` ∈ {0..12}, `cows_alive[2]` ∈ {0..12}, `active_player` ∈ {0, 1}. - Per-turn ephemeral state: `placed_point`, `moved_from`, `moved_to`, `mill_formed` (bool), `shot_target`. - Observable information: fully observable, perfect information. ## Action space - `place(point)`: Phase 1 active player places a cow on a vacant point; if mill formed, triggers `shoot(target_point)` (R2). - `slide(from_point, to_point)`: Phase 2 active player slides cow to adjacent connected vacant point; if mill formed, triggers `shoot(target_point)` (R3). - `fly(from_point, to_point)`: Phase 3 active player (with `cows_alive == 3`) moves cow to any vacant point; if mill formed, triggers `shoot(target_point)` (R4). - `shoot(target_point)`: forced continuation following mill formation, selecting an eligible enemy cow to remove. ## Playability notes - Single-player-vs-AI: superb tactical and strategic depth; standard min-max search with alpha-beta pruning works exceptionally well once graph connectivity is established. - Reducing n > 4 to 2 agents: not applicable; strictly two-player. - Physical-skill games: not applicable; pure combinatorial board game. - What is lost: the traditional cattle-herding cultural context, stone/wood board acoustics, and rapid oral challenges of South Africa herd-boys. ## Implementation hints Model the 24 points with an adjacency list including corner diagonals: outer square (0..7), middle square (8..15), inner square (16..23). Include the 20 mill triplets (8 on squares, 4 orthogonal connectors, 8 diagonal corner lines). Implement Phase 3 flying dynamically per player: check `cows_alive[p] == 3` to expand legal destinations to all vacant board points. Add a 50-move non-capture draw rule and cycle detection to guarantee engine termination. Suggested first milestone: 24-point graph topology with mill detection and 3-phase move generation.

Download as JSON

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

Download JSON
Cite this page

Morabaraba (South Africa). (n.d.). Games of Countries. https://gamesofcountries.com/games/za-south-africa/morabaraba

@misc{gamesofcountries-za-south-africa-morabaraba,
  title = {Morabaraba (South Africa)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/za-south-africa/morabaraba}
}