Skip to main content
Formal Specification

Algerian Stave Race Game — Formal Specification

Algeria · board-race · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# El-Sig — AI-optimized specification ## General idea A turn-based race and capture game played on a linear track where movement points are generated by casting 6 two-sided staves. Pieces must be unlocked by rolling a specific "Sig" value before entering the communal track, where exact-landing captures eliminate opponent pieces. ## Formal model - **Abstraction taken:** Direct discrete formalization. Stave roll probabilities are modeled via a 6-coin binomial distribution `B(6, 0.5)` with discrete value mapping. - **Player/agent count:** 2 players (Player 0 and Player 1). - **Turn model:** Sequential turns with bonus-roll continuation upon rolling {1 (Sig), 6 (Seta), 0 (Goul)}. ## Formal rules R1. Board Topology: A linear graph of 24 positions (indexed `0..23`). Player 0 starts at position `0` moving clockwise `0 -> 23`; Player 1 starts at position `12` moving `12 -> 23 -> 0 -> 11`. R2. Piece State: Each player owns `N = 6` pieces. A piece has status `Inactive` (home trench) or `Active(pos)` (on track). R3. Stave Randomizer: 6 staves cast simultaneously. Let `k` be the count of convex-up staves: - `k = 1`: **Sig** -> `value = 1`, `grant_extra_roll = true`. Can change one piece from `Inactive` to `Active(start_pos)`. - `k = 2`: **Dous** -> `value = 2`, `grant_extra_roll = false`. - `k = 3`: **Tlata** -> `value = 3`, `grant_extra_roll = false`. - `k = 4`: **Arba** -> `value = 4`, `grant_extra_roll = false`. - `k = 5`: **Khamsa** -> `value = 5`, `grant_extra_roll = false`. - `k = 6`: **Seta** -> `value = 6`, `grant_extra_roll = true`. - `k = 0`: **Goul** -> `value = 6`, `grant_extra_roll = true`. R4. Roll Accumulation Phase: If a roll grants `grant_extra_roll`, the player rolls again and accumulates movement points into a pool before allocating moves. R5. Movement & Capture: - An active piece moves forward by `M` accumulated points. - If a piece lands on an opponent's piece, the opponent's piece is permanently eliminated. - If landing on a friendly piece, a stack is formed (max 3 pieces). R6. [gap-fill] Turn Pass on No Move: If a player accumulates movement points but has no active piece and cannot activate one, accumulated points are forfeited and the turn passes. R7. Win Condition: A player wins when all opponent pieces are eliminated. ## Edge cases - Tie at the end condition: Not applicable; winner is determined strictly when one player captures all opposing pieces. - A player with no legal move: Handled by R6; accumulated points forfeit cleanly without error. - Repetition / cycles: [gap-fill] To prevent endless circling without engagement, if 50 consecutive non-capture turns elapse, the player with the greater number of surviving active pieces wins. - Simultaneous claims on the same resource or position: Sequential movement resolves collisions; exact landing triggers capture immediately. - Player elimination mid-round; turn order repair: Not applicable; 2-player game ends immediately on final capture. - Resource exhaustion: Pieces are finite (6 per player) and decremented on capture. - Termination guarantee: Guaranteed by the 50-turn non-capture cycle breaker and finite piece counts. ## State representation - Persistent state: `pieces_p0 = [status]`, `pieces_p1 = [status]`, `active_player in {0, 1}`, `turns_since_capture in [0..50]`. - Ephemeral state: `accumulated_points in int`, `can_activate_count in int`. - Observability: Perfect information; all piece positions, roll outcomes, and accumulated point pools are fully observable. ## Action space - `roll_staves()`: Triggered at turn start or bonus roll. - `activate_piece()`: Consume 1 Sig point to deploy an inactive piece. - `move_piece(piece_id, points)`: Move active piece by specified points. ## Playability notes - Single-player-vs-AI: Engine-ready; standard expectimax or Monte Carlo Tree Search (MCTS) performs exceptionally well given stochastic dice branching. - Group games (n>4): Naturally reduced to 2 players (or 2 team agents alternating decisions). - Physical-skill games: Not applicable; pure discrete board-race system. - What is lost: The physical hand-feel and sand-flinging drama of tossing seasoned reed staves. ## Implementation hints Discrete 1D circular array representation. First milestone: implement the 6-stave multinomial randomizer, turn accumulation loop, and piece activation checks before implementing AI heuristic search.

Download as JSON

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

Download JSON
Cite this page

Algerian Stave Race Game (Algeria). (n.d.). Games of Countries. https://gamesofcountries.com/games/dz-algeria/sig

@misc{gamesofcountries-dz-algeria-sig,
  title = {Algerian Stave Race Game (Algeria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/dz-algeria/sig}
}