Skip to main content
Formal Specification

Barjis — Formal Specification

Lebanon · board-race · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 1
# Al-Barjis — AI-optimized specification ## General idea A traditional Levantine cross-board race game played on embroidered black cloth. Six cowry shells determine entry, movement, and bonus turns. Pieces traverse the perimeter of four arms, ascend their home arm, and finish in the central kitchen (*Al-Matbakh*). Landing on opponent pieces captures them unless they occupy marked safe havens (*Al-Shirah*). ## Formal model - **Board structure:** Cross-shaped track of 4 arms × 3 columns × 8 squares + central *Matbakh* (Kitchen). Total track length: 83 positions. - **Player/agent count:** 2 players (or 2 teams of 2), 4 pieces each. - **Turn model:** Alternating turns. Rolls of *Dust* (10), *Banj* (25), or *Barah* (12) grant bonus rolls. ## Formal rules R1. **Casting shells:** 6 cowry shells thrown. Let m∈[0,6] be the number of open mouths facing up: - m=1⟹Dust (10 steps + enters piece + extra roll) - m=5⟹Banj (25 steps + enters piece + extra roll) - m=6⟹Barah (12 steps + extra roll) - m=0⟹Sirr (6 steps) - m=2⟹Khal (2 steps) - m=3⟹Thalathah (3 steps) - m=4⟹Arba’ah (4 steps) R2. **Entering pieces:** A dormant piece enters the starting square (*Al-Shirah*) only by spending an entry roll (*Dust* or *Banj*). R3. **Movement execution:** - Player rolls until a non-bonus value is cast, accumulating a list of movement values. - Values are assigned to active pieces. A single roll's value cannot be split across pieces. - Pieces move counter-clockwise around perimeter, then up the center of their home arm into *Al-Matbakh*. R4. **Capturing:** Landing on an opponent piece on a non-safe square captures it, sending it back to the dormant pool. R5. **Safe squares:** Marked squares (*Shirah* and outer corner squares) protect pieces from capture. Multiple pieces may co-exist on safe squares. R6. **Victory condition:** The first player/team to move all 4 pieces into *Al-Matbakh* wins. R7. **Mars victory:** If a player completes all 4 pieces before the opponent enters a single piece into the kitchen, a double-win (*Mars*) is awarded. R8. [gap-fill] Turn limits:** Maximum 120 turn cycles per player. ## Edge cases - **Tie at the end condition:** Mars double-win or standard first-finisher win. - **A player with no legal move:** If accumulated values cannot be applied to any piece, unused values are forfeited. - **Repetition / cycles:** Path is strictly linear toward *Matbakh*; pieces cannot move backward. - **Simultaneous claims:** Turn-based resolution. - **Player elimination mid-round:** Not applicable. - **Resource exhaustion:** 4 pieces per player, persistent. - **Termination guarantee:** Provably terminates via path finiteness and 120-cycle cap. ## State representation - **Persistent state:** `scores: Dict[PlayerID, int]`. - **Ephemeral state:** `piece_positions: Dict[PlayerID, List[int]]`, `active_player: PlayerID`, `roll_queue: List[int]`. - **Observable information:** Fully observable board state. ## Action space - `cast_shells()`: Generates roll sequence. - `apply_move(piece_index, roll_value)`: Advances piece along track. ## Playability notes - **Single-player-vs-AI:** High suitability for Expectimax / Monte Carlo Tree Search agents. - **Group games (n>4):** Native 2v2 team partnerships. - **Physical-skill games:** Not applicable (pure board game). - **What is lost:** Rhythmic cowry rattling, vocal chanting (*"Dust!", "Banj!"*), and Tripoli cafe shisha aromas. ## Implementation hints 1D integer track indexing with coordinate mapping to cross-arm grid coordinates.

Download as JSON

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

Download JSON
Cite this page

Barjis (Lebanon). (n.d.). Games of Countries. https://gamesofcountries.com/games/lb-lebanon/barjis

@misc{gamesofcountries-lb-lebanon-barjis,
  title = {Barjis (Lebanon)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/lb-lebanon/barjis}
}