Formal Specification
Ohvalhu (Eight-Hole Maldivian Mancala) — Formal Specification
Maldives · board-abstract · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Ohvalhu Gondi — AI-optimized specification
## General idea
Ohvalhu Gondi is a deterministic 16-hole (2x8) mancala board game played with 128 cowrie shells. It features multi-lap continuous sowing in a counter-clockwise loop, where landing in an occupied pit immediately picks up the contents to continue sowing, and landing in an empty pit on one's own side captures the contents of the directly opposite enemy pit. The game spans multiple rounds with an attrition-based hole-barring economy (*thulhadhoo*).
## Formal model
- **Abstraction taken:** None required; traditional rules form a fully discrete, complete mathematical system.
- **Player/agent count:** 2 players (Player 0 and Player 1).
- **Turn model:** Strictly sequential, alternating turns (after optional simultaneous opening).
## Formal rules
R1. Board Topology: Directed cycle graph of 16 pits indexed .
- Pits belong to Player 0; Pits belong to Player 1.
- Sowing direction is strictly .
- Each player has a private store .
R2. Initial Setup: At round 1 start, for all ; . Total counters = 128.
R3. Legal Move: A player on their turn selects any non-empty, non-barred pit on their own side ().
R4. Continuous Lap Sowing:
- Lift ; set ; cursor .
- While :
- .
- If pit is barred, [gap-fill] drop 1 counter directly into opponent's store, decrement , and continue.
- Else: ; .
- When :
- If : lift new ; set ; continue loop.
- If : sowing terminates.
R5. Capture Resolution:
- If final drop occurred at pit with :
- If is on active player's side and opposing pit contains :
- .
- ; .
R6. Round Termination & Multi-Round Economy:
- Round ends when no active player has a legal move (all pits on one or both sides are empty).
- Remaining board counters are awarded to the respective side's store.
- Hole Re-filling: Each player attempts to fill their 8 pits with 8 counters each from their store.
- Any pit unable to receive 8 counters is marked **barred** (`thulhadhoo`) for the next round.
R7. Win Condition: A player who cannot fill even a single pit (owns 0 active pits at round start) loses the game immediately.
## Edge cases
- **Tie at the end condition:** Not applicable; total counters (128) and discrete 8-counter hole quotas guarantee that one player eventually acquires counters, forcing the other to 0 holes.
- **A player with no legal move:** Triggers immediate round termination; remaining pieces are collected into stores.
- **Repetition / cycles:** [gap-fill] If an endless sowing cycle occurs within a single turn (rare in 16-hole boards), the turn terminates after 20 continuous laps and pieces are retained in current positions.
- **Simultaneous claims on the same resource or position:** Not applicable; turns are strictly sequential.
- **Player elimination mid-round:** Not applicable; players only lose at the round boundary when unable to populate any holes.
- **Resource exhaustion:** Total counter pool is strictly conserved at 128.
- **Termination guarantee:** The multi-round refill mechanic is strictly monotonic in hole ownership reduction.
## State representation
- **Persistent state:** Array of 16 pit counts (integers), array of 16 barred flags (booleans), Store 0 count, Store 1 count, active player index (0 or 1).
- **Per-turn ephemeral state:** Current hand counter count , cursor index , continuous lap counter.
- **Observable information:** Perfect information; complete board state is visible to both agents.
## Action space
- `sow_from_pit(index)`: Select pit index for Player 0, or for Player 1, where and .
## Playability notes
- **Single-player-vs-AI:** Highly engine-ready; ideal for Minimax, Alpha-Beta pruning, or MCTS agents.
- **Group games (n>4):** Not applicable; inherently a 2-player zero-sum abstract game.
- **Physical-skill games:** Not applicable; 100% discrete strategic board game.
- **What is lost:** Physical satisfaction of handling smooth cowrie shells and rhythmic wooden board clicks.
## Implementation hints
Extremely low implementation complexity. State is a 16-element integer array plus two integers. Branching factor is small ( legal moves per turn). First milestone: implement single-round simulation with automated turn alternation and capture validation.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Ohvalhu (Eight-Hole Maldivian Mancala) (Maldives). (n.d.). Games of Countries. https://gamesofcountries.com/games/mv-maldives/ohvalhu-gondi
@misc{gamesofcountries-mv-maldives-ohvalhu-gondi,
title = {Ohvalhu (Eight-Hole Maldivian Mancala) (Maldives)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mv-maldives/ohvalhu-gondi}
}