Skip to main content
Formal Specification

Syrian Cross-and-Circle Cowrie Game — Formal Specification

Syria · board-race · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Al-Barjis — AI-optimized specification ## General idea A discrete cross-and-circle race game where agents throw 6 asymmetric cowrie shells to generate movement points and entry permissions (*khal*), racing 4 markers around a shared 68-node perimeter track and up a private home column. It combines non-uniform probability distributions, bonus-turn chains, safe-haven positioning, and aggressive piece captures. ## Formal model - **Abstraction taken:** Board formalized as a directed graph consisting of 4 arms of 3x8 grid squares meeting at a central sink node `Matbakh` (68 outer track nodes + 4 private 7-node home columns). - **Player/agent count:** 2 agents (or 4 agents in 2 partnerships). - **Turn model:** Sequential turn rotation; active player throws lots and executes movement. Rolling Dast, Bunj, or Bara grants an additional throw that can be chained. ## Formal rules R1. Setup: Each agent i∈{0,1} has a reserve pool of 4 pieces off-board, 0 pieces bearing off. R2. On agent i's turn, roll 6 independent binary cowries, each landing mouth-up with probability p≈0.55 (or standard empirical cowrie distribution). R3. Outcome mapping: - 6 mouth-up: Value = 12, Bonus = True, GrantsKhal = False (`Dast`). - 5 mouth-up: Value = 25, Bonus = True, GrantsKhal = True (`Bunj`). - 4 mouth-up: Value = 4, Bonus = False, GrantsKhal = False (`Shakka`). - 3 mouth-up: Value = 3, Bonus = False, GrantsKhal = False (`Sehk`). - 2 mouth-up: Value = 2, Bonus = False, GrantsKhal = False (`Douk`). - 1 mouth-up: Value = 11, Bonus = True, GrantsKhal = True (`Bara`). - 0 mouth-up: Value = 6, Bonus = False, GrantsKhal = False (`Naksa`). R4. An agent rolls all successive bonus rolls before moving, accumulating a multiset of movement values and khal rights. [gap-fill] The agent then allocates these values among their active/reserve pieces in any legal order. R5. To move a piece from reserve to starting node Si, the agent must consume one `khal` grant and 1 movement point. R6. Piece advancement: A piece advances along the outer loop according to assigned movement values. R7. Capture: If piece Pa lands on an unprotected node occupied by opposing piece Pb, Pb is removed and returned to opponent's reserve. R8. Safe nodes (`Qal'ah`): Marked nodes (starting nodes and specific intervals) are safe. Pieces on safe nodes are immune to capture, and multiple pieces may stack on them. R9. Bearing off: Upon completing the 68-node circuit, a piece enters its player-specific 7-step home column. Entering `Matbakh` requires an exact roll. R10. Win condition: The first agent to bear off all 4 pieces wins immediately. ## Edge cases - **Tie at the end condition:** Not applicable; play is turn-based and the first agent to bear off all 4 pieces triggers immediate victory. - **A player with no legal move:** If an agent holds movement values but has no active pieces and rolled no `khal` (or cannot legally allocate values without exceeding track bounds), the turn/rolls are forfeited and pass to the next agent. - **Repetition / cycles:** [gap-fill] Loop-breaker: If 100 consecutive full rounds elapse without a capture or piece entering `Matbakh`, the player with the highest total forward piece advancement is declared the winner. - **Simultaneous claims on the same resource or position:** Not applicable; moves resolve sequentially within each turn. - **Player elimination mid-round; turn order repair:** In a 4-player game, when a player bears off all 4 pieces, their partner takes over remaining turns; if 4-way individual, the finished player is removed and turn order rotates among remaining active players. - **Resource exhaustion:** Pieces are conserved; captured pieces recycle to reserve and can re-enter indefinitely. - **Termination guarantee:** Guaranteed by finite board length, irreversible bearing-off into `Matbakh`, non-zero probability of high movement rolls (`Bunj` = 25, `Dast` = 12), and the 100-round cycle-breaker rule. ## State representation - Persistent state: - `piece_positions`: array of shape `(players, 4)` taking values in `{-1 (reserve), 0..67 (outer track), 100..106 (home track), 999 (borne off)}`. - `active_player`: integer in `{0, 1}`. - Per-turn ephemeral state: - `roll_queue`: list of available `(value, grants_khal)` tuples. - Observable information: Fully observable state; all rolls and piece locations are public knowledge. ## Action space - `enter_piece(piece_idx, roll_idx)`: Move piece from reserve to track using a khal-granting roll. - `move_piece(piece_idx, roll_idx)`: Advance an on-board piece by the specified roll value. - `pass_turn()`: Forfeit remaining unusable rolls when no legal actions remain. ## Playability notes - Single-player-vs-AI: Engine-ready; standard expectimax or MCTS algorithms perform well given the stochastic roll generation and discrete branching factor (1 to 4 movable pieces per roll). - Group games (n>4): Standard game is 2 or 4 players. 2-player model is zero-sum and fully captures the strategic depth. - Physical-skill games: Not applicable (pure tabletop board game). - What is lost in the adaptation: The tactile rhythm of throwing cowries, social banter, and team signaling. ## Implementation hints - Discretize the board into a unified 1D index mapping table for outer track and home lanes. - Suggested first milestone: Implement deterministic board graph and piece movement with a seeded pseudo-random 6-cowrie lot generator.

Download as JSON

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

Download JSON
Cite this page

Syrian Cross-and-Circle Cowrie Game (Syria). (n.d.). Games of Countries. https://gamesofcountries.com/games/sy-syria/al-barjis

@misc{gamesofcountries-sy-syria-al-barjis,
  title = {Syrian Cross-and-Circle Cowrie Game (Syria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/sy-syria/al-barjis}
}