Formal Specification
Tamil Fourteen-Pit Mancala — Formal Specification
Singapore · board-abstract · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Pallanguzhi — AI-optimized specification
## General idea
Pallanguzhi is a deterministic, two-player 14-pit mancala game characterized by continuous relay-sowing loops where turns do not terminate upon dropping the final seed into a occupied pit, but instead scoop the *subsequent* pit. Captures occur via trailing empty-pit pickups and real-time triggers when exactly 4 seeds accumulate in any pit (*Pasu*).
## Formal model
- **Abstraction taken:** None; formal discrete state machine representing a 14-node circular array with 2 side stores.
- **Player/agent count:** Exactly 2 agents (Player 1 controls pits ; Player 2 controls pits ).
- **Turn model:** Strictly alternating sequential turns.
## Formal rules
R1. Track Setup: A 14-element cyclic array indexed anti-clockwise.
- Initial state: for all (Total seeds = 70) [gap-fill: standard 5-seed setup]. Active mask for all .
- Stores: .
R2. Active Move Selection: Player selects pit such that . If no such pit exists, the turn skips.
R3. Relay Sowing Engine:
- , current cursor .
- While :
- .
- If , continue without dropping seed.
- .
- Pasu Check: If , the owner of pit (i.e. P1 if else P2) captures all 4 seeds into their store ().
- Relay / Termination Check (when ):
- Lookahead to next pit (skipping burnt pits).
- Case 1 (Relay Continuation): If , , and loop continues.
- Case 2 (Empty Pit Capture): If :
- (skipping burnt pits).
- If , the active player captures all seeds from ().
- Sowing terminates (*mati*); turn ends.
R4. Round Reset & Burnt Pits (*Kollu*):
- When all pits are empty, the round ends.
- Each player counts store and refills active pits with 5 seeds each starting from their leftmost pit.
- Any pit that cannot be filled with 5 seeds is marked burnt (). Remaining seeds return to store.
R5. Win Condition: A player who starts a round with 0 active pits ( for all friendly pits) loses immediately.
## Edge cases
- Tie at the end condition: If both players retain equal pits after 10 rounds, the player with the greater banked score wins [gap-fill].
- A player with no legal move: If all friendly pits are empty during a round, the agent's turn is skipped until seeds are sown into their side.
- Repetition / cycles: Finite total seeds (70) and irreversible captures into non-sown stores guarantee round termination.
- Simultaneous claims on the same resource or position: Pasu rule is deterministic based on pit ownership; turns are strictly sequential.
- Player elimination mid-round: Pits burn only during the round-reset refilling phase.
- Resource exhaustion: Conserved seed count (70 total seeds).
- Termination guarantee: Captures strictly reduce on-board seeds, guaranteeing round convergence.
## State representation
- Persistent state:
- `pit_seeds`: array of 14 integers ().
- `active_pits`: array of 14 booleans.
- `player_stores`: array of 2 integers ().
- `active_player`: integer .
- `round_number`: integer.
- Observable information: Perfect information, fully observed by both agents.
## Action space
- `sow(pit_index)`:
- `pit_index` for P1; for P2. Precondition: .
## Playability notes
- Single-player-vs-AI: Perfect domain for minimax with alpha-beta pruning or MCTS.
- Group games (n>4): Not applicable (2-player duel).
- Physical-skill games: Not applicable (pure discrete strategy).
- What is lost: Pleasant acoustic click of cowrie shells landing on hard teakwood.
## Implementation hints
Extremely compact discrete state. Lookahead to `next` and `capture_pit` during empty-pit evaluations must properly skip burnt pit indices.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Tamil Fourteen-Pit Mancala (Singapore). (n.d.). Games of Countries. https://gamesofcountries.com/games/sg-singapore/pallanguzhi
@misc{gamesofcountries-sg-singapore-pallanguzhi,
title = {Tamil Fourteen-Pit Mancala (Singapore)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/sg-singapore/pallanguzhi}
}