Skip to main content
Formal Specification

Saharan stick-dice race game — Formal Specification

Morocco · dice-lots · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 1
# Sig — AI-optimized specification ## General idea A traditional Saharan stave-dice race and elimination game. Two opposing players/teams cast eight two-faced wooden sticks onto sand to generate non-uniform movement points and activation tokens (*Sig*). Active pieces traverse a shared looping 1D track along a sand embankment (*Lebra*), capturing opponent pieces by landing on their exact coordinates. ## Formal model - **Abstraction taken:** The physical throwing of 8 semi-cylindrical wooden sticks is modeled via an exact 8-coin binomial/asymmetric probability distribution. The sand mound track is represented as a 1D circular discrete graph with M=24 nodes. - **Player/agent count:** 2 players or teams (T0,T1). - **Turn model:** Alternating turns. An active turn consists of casting sticks, checking extra-turn bonuses, and moving eligible pieces. ## Formal rules R1. **Track Topology & Piece Setup:** - Track G consists of N=24 discrete positions indexed 0…23. - Team 0 home sector: Indices [0,11]. Team 1 home sector: Indices [12,23]. - Each team begins with K=8 pieces in their reserve pool Reservei=8, Activei=∅. R2. **Stave Randomizer (*Sikat* Cast):** - Throwing 8 sticks yields outcome W∈[0,8] (count of white/inner faces facing up). - Outcome Mapping: - W=1∨W=7: Points=1, BonusRoll=true, CanActivate=true (*Sig*). - W=2: Points=2, BonusRoll=false. - W=3: Points=3, BonusRoll=false. - W=4: Points=4, BonusRoll=true. - W=5: Points=0, BonusRoll=false. - W=6: Points=6, BonusRoll=true. - W=8: Points=8, BonusRoll=true. - W=0: Points=8, BonusRoll=true. R3. **Activation & Movement:** - If CanActivate==true and Reservei>0: Agent may choose `activate_piece()` to move 1 piece from reserve onto its home entry node (0 for T0, 12 for T1). - If active pieces exist: Agent may execute `move_piece(piece_id, points)` to advance piece P clockwise along track: pos′=(pos+points)(mod24). R4. **Capture Mechanism (*Killing*):** - If an active piece lands on index k currently occupied by an opponent piece Q: - Opponent piece Q is permanently removed from the game (state →dead). - Friendly pieces on the same node form a stack. R5. **Bonus Roll Chaining:** - If BonusRoll==true, the active player retains the turn and casts again, accumulating or executing moves sequentially. R6. **Victory Condition:** - A team wins immediately when all K pieces of the opposing team are captured (Reserveopp=0∧|Activeopp|=0). ## Edge cases - **Tie at the end condition:** Not applicable — total elimination is strictly unilateral; simultaneous captures cannot occur. - **A player with no legal move:** If a player has no active pieces and rolls no *Sig* (W∉{1,7}), the turn passes immediately to the opponent with zero state change. - **Repetition / cycles:** [gap-fill] If neither team captures a piece for 100 consecutive turns, the player with the higher count of active pieces on the board wins; if equal, a draw is declared. - **Simultaneous claims on the same resource or position:** Turns are strictly sequential; landing on an occupied square executes a capture or friendly stack. - **Player elimination mid-round; turn order repair:** Not applicable — 2-sided team turn structure. - **Resource exhaustion:** Finite pieces (K=8 per side). - **Termination guarantee:** Guaranteed by asymmetric capture mechanics and the 100-turn non-capture limit. ## State representation - **Persistent state:** Active team ∈{0,1}, turn count, non-capture turn counter. - **Per-player state:** ReserveCounti∈[0,8], CapturedCounti∈[0,8], list of active pieces {(id,position)}. - **Ephemeral state:** Current cast outcome (W,Points,BonusRoll,CanActivate). - **Observable information:** Fully observable board state. ## Action space - `cast_staves()`: Trigger stochastic lot generator. - `activate_piece()`: Move piece from reserve to entry node. - `move_piece(piece_id)`: Advance specified active piece by current point allowance. - `pass_turn()`: Relinquish turn when no legal moves can be taken. ## Playability notes - **Single-player-vs-AI:** Direct and natural: standard expectimax or Monte Carlo Tree Search (MCTS) applies seamlessly given the stochastic dice rolls. - **Group games (N>4):** Team format reduces cleanly to 2 competing agents (one controlling each side). - **Physical-skill games:** Not applicable (pure discrete board/dice game). - **What is lost in the adaptation:** The physical sensation of tossing painted tamarisk sticks into warm Sahara sand and the festive tea-ceremony cadence. ## Implementation hints - Implement the randomizer with asymmetric coin weights P(white)≈0.45 (reflecting convex/concave geometry). - First milestone: Implement board graph, piece activation via Sig (W∈{1,7}), and basic capture logic.

Download as JSON

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

Download JSON
Cite this page

Saharan stick-dice race game (Morocco). (n.d.). Games of Countries. https://gamesofcountries.com/games/ma-morocco/sig

@misc{gamesofcountries-ma-morocco-sig,
  title = {Saharan stick-dice race game (Morocco)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ma-morocco/sig}
}