Formal Specification
Sahrawi stave-dice race game — Formal Specification
Western Sahara · dice-lots · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 3
# As-Sig As-Saharawi — AI-optimized specification
## General idea
A turn-based race and capture board game played along a linear track on an embankment (*Lbrá*). Movement points are generated by casting eight two-faced wooden staves, whose binary face combinations produce a non-uniform discrete probability distribution. Players must roll a qualifying *Sig* (exactly 1 pale face) to activate pieces onto the track, after which pieces navigate across the central ridge into enemy territory to capture opposing pieces by landing on them.
## Formal model
- **Abstraction taken:** The physical drop of eight carved wooden staves is modeled as eight independent Bernoulli trials with probability of landing flat-side up, mapped to traditional discrete point outcomes and extra-roll permissions. The continuous sand mound is discretized into a 1D graph track of indexed nodes (default ).
- **Player/agent count:** 2 teams, Team 0 and Team 1 (each represented by 1 agent or a rotational sub-agent queue).
- **Turn model:** Sequential turns. A player's turn consists of rolling the staves, followed by moving a piece if points are generated and a legal move exists, repeating if an extra-roll combination was cast.
## Formal rules
R1. **Track Topology:** The track consists of linear nodes indexed . Nodes represent Team 0's home slope, node 14 is the crest, and nodes represent Team 1's home slope.
R2. **Piece Bank:** Each team starts with pieces in their unactivated reserve bank.
R3. **Stave Randomizer Distribution:** Rolling 8 staves yields flat (pale) faces up:
- (*Sig*): Score = 1 point, qualifies 1 reserve piece for activation, grants an extra roll.
- (*Dous*): Score = 2 points, no extra roll.
- (*Thalatha*): Score = 3 points, no extra roll.
- (*Arba'a*): Score = 4 points, grants an extra roll.
- (*Sitta*): Score = 6 points, grants an extra roll.
- (*Ashra*): Score = 8 points, grants an extra roll.
- (*Gharra*, 8 dark faces): Score = 8 points, grants an extra roll.
- : Score = 0 points, no extra roll, turn ends immediately.
R4. **Activation:** A piece in the reserve bank cannot move onto the track unless the player consumes a *Sig* outcome (). Consuming *Sig* places 1 piece at the team's entry node (node 0 for Team 0, node for Team 1).
R5. **Movement:** An active piece on node advances by nodes along the track direction toward the opponent's side ( for Team 0, for Team 1).
R6. **Capture:** If a piece lands by exact roll count on an enemy piece, the enemy piece is permanently removed (eliminated) from the match.
R7. **Stacking:** Friendly pieces landing on the same node form a stack and may move together in future turns if points permit.
R8. [gap-fill] If an extra-roll outcome is rolled but no legal move can be made with the points, the points are forfeited, and if the roll granted an extra roll, the extra roll is still executed.
R9. [gap-fill] Loop-breaking rule: If 100 consecutive turns occur without a capture or piece entry, the game is declared a draw, or decided by majority of surviving pieces.
R10. **Victory:** A team wins immediately when all pieces of the opposing team are captured.
## Edge cases
- **Tie at the end condition:** Not applicable during standard play — victory is achieved upon capturing the final enemy piece. If terminated by move-limit rule R9, tie goes to the team with more active/reserve pieces; if equal, a draw is declared.
- **A player with no legal move:** If a player has no pieces on the track and rolls non-qualifying points (e.g. ), the points cannot be used and turn passes to the opponent.
- **Repetition / cycles:** Bounded by rule R9 ( [gap-fill] 100-turn non-capture limit).
- **Simultaneous claims on the same resource or position:** Turns are strictly sequential; landing on an opponent node resolves as a capture immediately.
- **Player elimination mid-round; turn order repair:** Team members share the team turn in fixed rotation; eliminating an opponent piece does not alter the team rotation order.
- **Resource exhaustion:** Pieces are finite ( per team). Captured pieces never re-enter.
- **Termination guarantee:** The game terminates because piece captures are permanent and monotonic, bounded by R9's turn threshold.
## State representation
- **Persistent state:**
- `track`: array of length where each node holds a list of `{team_id, piece_id}`.
- `reserves`: array of size 2, `[count_team_0, count_team_1]`.
- `captured`: array of size 2, `[lost_team_0, lost_team_1]`.
- `active_team`: `0` or `1`.
- `turn_counter`: integer tracking non-capture turns.
- **Per-turn ephemeral state:**
- `stave_roll`: integer .
- `points`: integer .
- `extra_roll_pending`: boolean.
- **Observable information:** Fully observable state. All agents have complete information.
## Action space
- `cast_staves()`: Trigger stochastic roll.
- `activate_piece()`: Consume *Sig* () to move 1 piece from reserve to entry node. Precondition: `reserves[active_team] > 0` and `points == 1`.
- `move_piece(piece_id, steps)`: Move active piece by `steps` along the track. Precondition: `piece.team == active_team` and destination track boundary and `steps == points`.
- `pass_turn()`: End turn when no legal moves can consume the rolled points.
## Playability notes
- **Single-player-vs-AI:** Natural 1v1 game. AI evaluates activation priority, piece advancement across the ridge, and capture opportunities using minimax or Monte Carlo tree search.
- **Group games (n>4):** Reduces cleanly to 2 competing teams. Team members alternate casting the staves and executing agreed moves.
- **Physical-skill games:** Not applicable (stochastic lot-casting).
- **What is lost in the adaptation:** The lively oral environment, poetic chanting (*tebra'*), and social banter of the *jaima* are omitted.
## Implementation hints
- Represent the track as a discrete 1D array.
- Pre-compute binomial probabilities for the 8 staves: .
- First milestone: Implement stave randomizer and single-piece traversal logic with capture checks before adding multi-piece stacking.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sahrawi stave-dice race game (Western Sahara). (n.d.). Games of Countries. https://gamesofcountries.com/games/eh-western-sahara/as-sig
@misc{gamesofcountries-eh-western-sahara-as-sig,
title = {Sahrawi stave-dice race game (Western Sahara)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/eh-western-sahara/as-sig}
}