Formal Specification
Al-Tab — Formal Specification
Jordan · board-race · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Al-Tab — AI-optimized specification
## General idea
A traditional race-and-capture board game played on a 4x12 grid. Players use four binary staves (flat wooden sticks) to generate movement points. It is structurally distinct because pieces start inactive in a starting row and must be activated by rolling a "Tab" (1 point) before they can move along a serpentine path into the middle rows and capture opponent pieces.
## Formal model
- **Abstraction taken:** None required; the physical throw of four split staves is mapped directly to a binomial distribution of 4 independent coin flips.
- **Player/agent count:** 2 players (or 2 teams acting as single agents).
- **Turn model:** Strictly sequential, alternating.
## Formal rules
R1. **Setup:**
1.1. The board is a 4x12 grid of cells. Row 1 belongs to Player 1; Row 4 belongs to Player 2.
1.2. Each player has 12 pieces ("dogs"). Player 1's pieces are placed in Row 1; Player 2's pieces are placed in Row 4.
1.3. At start, all pieces are in an "inactive/sleeping" state.
R2. **The Randomizer Roll:**
2.1. On their turn, a player rolls four binary staves. The result is mapped to points as follows:
- 1 White side up (Tab) = 1 point + extra roll.
- 2 White sides up (Aqr'a) = 2 points.
- 3 White sides up = 3 points.
- 4 White sides up = 4 points.
- 0 White sides up (Set / Sitta) = 6 points + extra roll.
2.2. Extra rolls accumulate score in a per-turn pool (e.g. rolling Tab, then Set, then Aqr'a yields pools of [1, 6, 2]). Once a non-extra roll (2, 3, or 4) is thrown, the rolling phase ends, and the player must distribute their accumulated points.
R3. **Activation and Movement:**
3.1. An inactive piece can *only* be activated and moved out of its starting row if the player spends a **Tab (1 point)** from their pool.
3.2. Once activated, pieces move along the serpentine path:
- Player 1 moves: Right to left along Row 1 (starting trench) -> Left to right along Row 2 -> Right to left along Row 3 -> Left to right along Row 4 (opponent's starting trench).
- Player 2 moves: Left to right along Row 4 (starting trench) -> Right to left along Row 3 -> Left to right along Row 2 -> Right to left along Row 1 (opponent's starting trench).
3.3. Points from the turn's pool can be distributed freely across one or multiple active pieces.
R4. **Capturing:**
4.1. A piece captures an opponent's piece if it lands exactly on the square occupied by that opponent piece.
4.2. Captured pieces are permanently removed from the board.
4.3. [gap-fill] Multiple allied pieces can stack in the same square. Stacked pieces are treated as a single block; they move together and cannot be split, and if an opponent lands on them, they are all captured together.
R5. **No Legal Move:**
5.1. [gap-fill] If a player rolls points but has no legal moves (e.g., all remaining pieces are inactive and they rolled no Tabs, or active pieces are blocked by boundary limits), their turn ends and the points are lost.
R6. **Winning:**
6.1. The player who captures all 12 of the opponent's pieces immediately wins.
## Edge cases
- **Tie at the end condition:** Not applicable; captures are permanent, and since players have finite pieces and cannot both be eliminated simultaneously, a tie is impossible.
- **A player with no legal move:** Handled by R5.1 (points are lost, turn passes).
- **Repetition / cycles:** Because pieces move along a one-directional serpentine track toward the opponent's starting trench and cannot move backward, infinite loops are impossible.
- **Simultaneous claims on the same resource:** Not applicable; sequential turns.
- **Player elimination mid-round:** Not applicable.
- **Resource exhaustion:** Bounded by pieces.
- **Termination guarantee:** Guaranteed by the one-way serpentine path directing pieces toward confrontation and permanent elimination.
## State representation
- **Persistent state:** Board cells (array of 48 cells containing a list of pieces/owners), player scores (captured pieces), player piece status (inactive, active, or captured), current turn, current turn's rolled points pool.
- **Per-turn ephemeral state:** Active rolls sequence, list of moves made during score distribution.
- **Observable information:** Fully observed.
## Action space
- `roll_staves()`: Generates a random stave roll, adding to the point pool if Tab/Set is rolled.
- `spend_points(piece_id, points)`: Moves a specific piece by spending the specified points from the current pool.
## Playability notes
- **Single-player-vs-AI:** Highly suitable; the stochastic nature of the stave roll paired with serpentine tactical movement fits MCTS or Q-learning models perfectly.
- **Group games:** Not applicable; inherently 2-agent.
- **What is lost in the adaptation:** The physical boisterous shouting and chanting accompanying stave rolls are lost.
## Implementation hints
Represent the serpentine path for each player as a flat 1D array of index mappings (0 to 47) to simplify movement logic. Implement the stave roll generator and point-pool accumulation as the first milestone.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Al-Tab (Jordan). (n.d.). Games of Countries. https://gamesofcountries.com/games/jo-jordan/al-tab
@misc{gamesofcountries-jo-jordan-al-tab,
title = {Al-Tab (Jordan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/jo-jordan/al-tab}
}