Formal Specification
Saharan stick-dice race game — Formal Specification
Morocco · dice-lots · Confidence: low
← Back to game pageImplementation 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 nodes.
- **Player/agent count:** 2 players or teams ().
- **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 consists of discrete positions indexed .
- Team 0 home sector: Indices . Team 1 home sector: Indices .
- Each team begins with pieces in their reserve pool , .
R2. **Stave Randomizer (*Sikat* Cast):**
- Throwing 8 sticks yields outcome (count of white/inner faces facing up).
- Outcome Mapping:
- : , , (*Sig*).
- : , .
- : , .
- : , .
- : , .
- : , .
- : , .
- : , .
R3. **Activation & Movement:**
- If and : Agent may choose `activate_piece()` to move 1 piece from reserve onto its home entry node ( for , for ).
- If active pieces exist: Agent may execute `move_piece(piece_id, points)` to advance piece clockwise along track: .
R4. **Capture Mechanism (*Killing*):**
- If an active piece lands on index currently occupied by an opponent piece :
- Opponent piece is permanently removed from the game (state ).
- Friendly pieces on the same node form a stack.
R5. **Bonus Roll Chaining:**
- If , the active player retains the turn and casts again, accumulating or executing moves sequentially.
R6. **Victory Condition:**
- A team wins immediately when all pieces of the opposing team are captured ().
## 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* (), 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 ( per side).
- **Termination guarantee:** Guaranteed by asymmetric capture mechanics and the 100-turn non-capture limit.
## State representation
- **Persistent state:** Active team , turn count, non-capture turn counter.
- **Per-player state:** , , list of active pieces .
- **Ephemeral state:** Current cast outcome .
- **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 ():** 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 (reflecting convex/concave geometry).
- First milestone: Implement board graph, piece activation via Sig (), and basic capture logic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite 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}
}