Formal Specification
Al-Tab — Formal Specification
Iraq · board-race · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 4
# Al-Tab — AI-optimized specification
## General idea
An ancient Mesopotamian/Arabian race and capture board game played on a grid. Four split palm sticks act as binary dice to activate dormant stones (*Jirwa* / soldiers) into the active track, traverse a 4-row serpentine boustrophedon course, and capture opponent stones upon landing.
## Formal model
- **Board structure:** 4 rows 11 columns (44 total squares). Rows 1 and 4 are home rows; Rows 2 and 3 are middle battlefield rows.
- **Player/agent count:** 2 players (11 stones each).
- **Turn model:** Alternating turns. Rolling *Tab* (1), *Sitta* (6), or *Arba'a* (4) grants an extra roll.
## Formal rules
R1. **Casting sticks:** 4 two-sided palm sticks thrown together. Let be the number of flat (white) sides facing up:
- (value 1 + activates dormant stone + grants extra throw)
- (value 6 + grants extra throw)
- (value 4 + grants extra throw)
- (value 2)
- (value 3)
R2. **Stone activation:** Stones begin dormant on the player's home row (Row 1 for P1, Row 4 for P2). A stone cannot enter the movement track until activated by spending a rolled *Tab* (1).
R3. **Serpentine movement:** Activated stones move along the continuous path:
- For P1: Row Row Row Row 4.
- For P2: Row Row Row Row 1.
R4. **Capturing:** Landing exactly on a square occupied by an opponent's stone captures and permanently removes it from the board.
R5. **Friendly collision:** A player cannot land on or jump over their own stones [gap-fill].
R6. **Victory condition:** The first player to capture all 11 opponent stones wins the match.
R7. [gap-fill] Turn limits:** Maximum 100 turns per player before draw.
## Edge cases
- **Tie at the end condition:** Highest remaining stones after 100 turns [gap-fill].
- **A player with no legal move:** If rolled values cannot be applied to any active or activatable stone, the roll is forfeited.
- **Repetition / cycles:** Path ends at final square of opponent's home row; pieces looping or held [gap-fill].
- **Simultaneous claims:** Not applicable — turn-based.
- **Player elimination mid-round:** Not applicable.
- **Resource exhaustion:** 11 stones per player, monotonically decreasing.
- **Termination guarantee:** Provably terminates via capture monotonicity and 100-turn limit.
## State representation
- **Persistent state:** `board: Array[4][11] \in {Empty, P1_Dormant, P1_Active, P2_Dormant, P2_Active}`, `active_turn: PlayerID`.
- **Ephemeral state:** `roll_queue: List[int]`.
- **Observable information:** Fully observable state.
## Action space
- `cast_sticks()`: Generates roll sequence.
- `activate_stone(pos)`: Spends *Tab* (1).
- `advance_stone(pos, steps)`: Moves active stone along path.
## Playability notes
- **Single-player-vs-AI:** High suitability for Expectimax / Monte Carlo Tree Search agents.
- **Group games (n>4):** Scales as 2 teams with turn passing.
- **Physical-skill games:** Not applicable (pure board game).
- **What is lost:** Clack of split palm branches on hard dirt and desert storytelling.
## Implementation hints
1D coordinate path mapping from index 0 to 43 along the serpentine route.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Al-Tab (Iraq). (n.d.). Games of Countries. https://gamesofcountries.com/games/iq-iraq/al-tab
@misc{gamesofcountries-iq-iraq-al-tab,
title = {Al-Tab (Iraq)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/iq-iraq/al-tab}
}