Formal Specification
Barjees — Formal Specification
Palestine · board-race · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Al-Barjees — AI-optimized specification
## General idea
A strategic cross-shaped board race game using 6 binary cowry shells as dice. Players compete to mobilize 4 tokens from home base along a counter-clockwise perimeter track, navigate safe zones, capture opponent tokens, and bear off into the central "kitchen" (*matbakh*).
## Formal model
- **Board structure:** Cross-shaped track of 4 arms, each with 3 columns 8 squares, plus a central 4-node *Matbakh* hub and designated safe squares (*Sajoun*).
- **Player/agent count:** 2 players (or 2 teams of 2).
- **Turn model:** Alternating turns. Rolling *Dast*, *Banj*, or *Bara* awards an extra roll.
## Formal rules
R1. **Dice mapping:** 6 cowry shells rolled together. Let be the number of open mouths:
- (6 steps)
- (10 steps + entry + extra roll)
- (2 steps)
- (3 steps)
- (4 steps)
- (25 steps + entry + extra roll)
- (12 steps + extra roll)
R2. **Piece entry:** A piece in reserve enters the active start square only when the player rolls a *Baja* (*Dast* or *Banj*).
R3. **Movement:** A piece on the track moves counter-clockwise by the rolled step value.
R4. **Capture:** If a piece lands on an opponent's piece on an unsafe square, the opponent's piece is knocked out and returned to reserve. Safe squares (*Sajoun*) forbid capture.
R5. **Home stretch & kitchen:** After completing a perimeter lap, pieces enter the middle column of their home arm and bear off into the *Matbakh* with exact rolls.
R6. **Victory:** First player to bear off all 4 pieces wins. If the opponent has 0 pieces in the kitchen, it is a *Mars* sweep (double victory points) [gap-fill].
R7. [gap-fill] Turn timer & roll stacking:** If multiple bonus rolls are accumulated, they are stored in a roll queue and resolved in sequence.
## Edge cases
- **Tie at the end condition:** Not applicable — bearing off is strictly sequential.
- **A player with no legal move:** If no pieces can move the rolled value, the turn/roll is forfeited.
- **Repetition / cycles:** Progress into home stretch is strictly monotonic once entered; infinite looping prevented by forward capture pressure.
- **Simultaneous claims:** Handled by capture resolution on target square.
- **Player elimination mid-round:** In 4-player team play, active team members continue.
- **Resource exhaustion:** 4 pieces per player, 6 shells.
- **Termination guarantee:** Provable termination through stochastic dice distribution and forward bearing-off requirements.
## State representation
- **Persistent state:** `board_positions: Dict[PieceID, int]`, `home_reserves: Dict[PlayerID, int]`, `kitchen_borne: Dict[PlayerID, int]`.
- **Ephemeral state:** `active_player: PlayerID`, `roll_queue: List[int]`, `extra_roll_flag: bool`.
- **Observable information:** Fully observable board state.
## Action space
- `roll_dice()`: Generates step value from cowry distribution.
- `enter_piece()`: Moves reserve token to start tile on *Baja*.
- `move_piece(piece_id, step_value)`: Advances specified piece.
## Playability notes
- **Single-player-vs-AI:** High suitability for Minimax/Expectimax AI agents.
- **Group games (n>4):** Native 2v2 partner play with shared cross arms.
- **Physical-skill games:** Not applicable (pure board game).
- **What is lost:** Tactile embroidery texture, sound of rattling cowries, and traditional banter.
## Implementation hints
Direct implementation on a 1D index mapping of the cross track (approx. 96 outer nodes + 4 home branches + 1 center node).
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Barjees (Palestine). (n.d.). Games of Countries. https://gamesofcountries.com/games/ps-palestine/barjees
@misc{gamesofcountries-ps-palestine-barjees,
title = {Barjees (Palestine)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ps-palestine/barjees}
}