Skip to main content
Formal Specification

Eight and Four / The Cowrie Shell Square Race Game — Formal Specification

India · board-race · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 3
# Ashta Chamma — AI-optimized specification ## General idea Ashta Chamma is an ancient South Indian cross-circuit race board game played on a 5×5 grid of 25 cells using four cowrie shells as binary dice. Players navigate four pawns along an outer 16-cell counter-clockwise perimeter, must execute at least one mandatory capture ("cut") to unlock access to the inner 8-cell clockwise ring, and finally bear off into the central home square on an exact roll. The combination of non-uniform dice distributions, bonus turn chains, safe havens, and circuit reversal makes it a rich stochastic race game. ## Formal model - **Abstraction taken:** Direct representation of the 5×5 board grid. The board is structured as two concentric rings: Outer Ring Router (16 cells, indexed counter-clockwise) and Inner Ring Rinner (8 cells, indexed clockwise), connected to the central Home Cell Chome=(2,2). - **Player/agent count:** 2 to 4 players (P0,P1,P2,P3). - **Turn model:** Sequential turns rotating counter-clockwise, with conditional bonus rolls. ## Formal rules R1. **Board Topology & Safe Squares:** - Board cells (r,c) for r,c∈{0,1,2,3,4}. - Home entry ports (Safe squares Ssafe): P0→(4,2), P1→(2,4), P2→(0,2), P3→(2,0). - Central Home square Chome=(2,2) is safe. - All 5 safe squares (Ssafe∪{Chome}) permit unlimited co-occupancy by friendly and opposing pawns without capture. R2. **Cowrie Shell Randomizer Distribution:** - On a throw, 4 binary cowrie shells are tossed. Outcome k∈{0,1,2,3,4} mouths facing upwards, with Bernoulli probability p per shell (empirically p≈0.5): - k=1⟹Value=1 (*Ekka*), no bonus roll. - k=2⟹Value=2 (*Dho*), no bonus roll. - k=3⟹Value=3 (*Theen*), no bonus roll. - k=4⟹Value=4 (*Chamma*), +1 bonus throw. - k=0⟹Value=8 (*Ashta*), +1 bonus throw. - A player rolls continuously as long as a 4 or 8 is rolled. All rolled values form a multiset of movement credits M={v1,v2,…} that may be allocated among eligible pawns. R3. **Pawn Entry:** - Each player possesses 4 pawns. All pawns start off-board in hand. - Any valid rolled movement value allows a player to enter a pawn from hand onto their starting safe square (rstart,cstart), expending that movement credit [gap-fill: standard domestic ruleset]. R4. **Outer Circuit Navigation & Captures:** - Pawns advance along Router in a counter-clockwise direction. - **Capture ("Cut" / Kill):** If a pawn lands by exact count on a non-safe cell occupied by a single opponent pawn: - The opponent's pawn is captured and sent back to its owner's hand (must re-enter from scratch). - The capturing player is credited with has_captured[Pi]=true. - The capturing player receives +1 immediate bonus throw added to their roll sequence. R5. **The Mandatory Cut & Inner Circuit Entry:** - A pawn that completes the 16-cell outer loop and returns to its home entry port can only enter Rinner if has_captured[Pi]=true. - If has_captured[Pi]=false, the pawn is prohibited from entering the inner ring and must continue traversing another lap of Router until the player executes a capture with any pawn. - Upon entering Rinner, the pawn traverses the 8 inner cells in a **clockwise** direction. R6. **Bearing Off to Home & Victory:** - A pawn in Rinner enters Chome only on an exact roll from its final inner track cell. - A pawn in Chome achieves state ripe (*pakka*) and is permanently finished. - The first player to bring all 4 pawns into Chome wins the game immediately. R7. **No-Move Rule:** [gap-fill] If a rolled movement credit cannot be legally allocated to any pawn on the board or in hand (e.g. overshooting Chome or blocked by mandatory cut rules), that specific credit is forfeited. ## Edge cases - **Tie at the end condition:** Not applicable — turns are strictly sequential, and the first player to achieve 4 finished pawns wins instantly. - **A player with no legal move:** Any rolled credit that cannot be legally applied to any pawn is discarded without penalty. - **Repetition / cycles:** A pawn without a cut may cycle Router repeatedly. [gap-fill] To guarantee termination, if a game reaches 200 total rounds without a winner, the player with the most pawns closest to Home (or highest finished count) is awarded the win. - **Simultaneous claims on the same resource or position:** On non-safe cells, landing on an opponent's pawn resolves as a capture; multiple friendly pawns cannot stack (or move together) on non-safe cells in the base ruleset. Safe cells accommodate multiple pawns indefinitely. - **Player elimination mid-round; turn order repair:** Captured pawns return to hand; turn order remains unchanged among all active players. - **Resource exhaustion (pieces, tokens, space, time):** 4 pawns per player are invariant; dice rolls are re-generated per turn. - **Termination guarantee: why the game provably ends:** Guaranteed by monotonic progress of pawns through Router→Rinner→Chome, combined with the 200-round limit. ## State representation - **Persistent state:** - Pi∈{P0,P1,P2,P3}: list of active players. - pawn_positions[Pi][j]∈{in_hand,outer(k),inner(m),home} for j∈{0,1,2,3}. - has_captured[Pi]∈{true,false}. - active_player_idx∈{0,1,2,3}. - round_counter∈ℕ. - **Per-turn ephemeral state:** - available_dice_credits: multiset of integers ⊂{1,2,3,4,8}. - bonus_roll_pending∈boolean. - **Observable information:** Fully observable public board state. ## Action space - `roll_dice()`: Tosses the 4 cowrie shells, appending roll values and triggering bonus rolls when rolling 4 or 8. - `move_pawn(pawn_id, dice_value)`: Applies a selected `dice_value` from `available_dice_credits` to advance `pawn_id` along its legal trajectory. - `forfeit_credit(dice_value)`: Discards a `dice_value` when no legal move exists for that credit. ## Playability notes - **Single-player-vs-AI:** Highly playable. Expectimax or MCTS algorithms perform exceptionally well given the probabilistic branch structure of cowrie rolls. - **Group games (n>4):** Standard game supports 2 to 4 players; a 2-player configuration is completely symmetrical and preserves 100% of the strategic dynamics. - **Physical-skill games:** Physical cowrie toss is modeled via a 4-trial Binomial random variable with p≈0.5. - **What is lost in the adaptation:** The physical clatter of cowrie shells landing on a wooden veranda or cloth mat. ## Implementation hints - Model the board as an explicit coordinate-to-track map: 16 outer indices, 8 inner indices, 1 home index per player. - Branching factor: After rolling m dice credits, allocating them to 4 pawns generates ≤4m permutations (typically 2–16 legal move branches per turn). - Obvious representational trap: Reversing the direction in the inner loop (outer is counter-clockwise, inner is clockwise) and forgetting to enforce the mandatory cut constraint before permitting inner-loop entry. - Suggested first milestone: Implement the 4-cowrie randomizer and 2-player pawn track mapping; verify capture bonuses and mandatory cut gating.

Download as JSON

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

Download JSON
Cite this page

Eight and Four / The Cowrie Shell Square Race Game (India). (n.d.). Games of Countries. https://gamesofcountries.com/games/in-india/ashta-chamma

@misc{gamesofcountries-in-india-ashta-chamma,
  title = {Eight and Four / The Cowrie Shell Square Race Game (India)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/in-india/ashta-chamma}
}