Skip to main content
Formal Specification

Syrian Morris Board Game — Formal Specification

Syria · board-abstract · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Al-Idrees — AI-optimized specification ## General idea A two-player alignment and capture game played on a 24-node graph of three concentric squares. In Phase 1, agents place 9 pieces alternately; in Phase 2, they slide pieces along graph edges. Forming any 3-in-a-row alignment triggers the removal of an opposing piece. When an agent is reduced to 3 pieces, their movement relaxes to arbitrary unconstrained jumping. ## Formal model - **Abstraction taken:** Direct representation. Undirected graph G=(V,E) with |V|=24 nodes representing intersections of three concentric squares, and |E|=32 edges connecting adjacent nodes orthogonally. - **Player/agent count:** 2 discrete agents. - **Turn model:** Sequential alternating turns. ## Formal rules R1. Setup: Board V initialized empty. Reserve pieces R0=9,R1=9. On-board counts B0=0,B1=0. R2. Phase 1 (Placement): While R0>0 or R1>0, the active agent selects an unoccupied node v∈V, sets V[v]=p, decrements Rp, increments Bp. R3. Phase 2 (Movement): When R0=0 and R1=0, if Bp>3, active agent selects piece at u (V[u]=p) and moves it to adjacent vacant node v ((u,v)∈E,V[v]=∅). R4. Phase 3 (Flying): If Bp==3, active agent selects piece at u (V[u]=p) and moves it to ANY vacant node v∈V (V[v]=∅). R5. Alignment and Capture: - If a placement or movement action causes three pieces of agent p to occupy a straight-line triplet T⊂V, agent p immediately selects one opposing piece w (V[w]=1−p) and removes it (V[w]=∅,B1−p−=1). - Constraint: An opposing piece in an existing 3-in-a-row cannot be removed unless all of the opponent's on-board pieces are in 3-in-a-row alignments. R6. Win condition: Agent p wins immediately if B1−p≤2 or if agent 1−p has no legal moves on their turn in Phase 2/3. ## Edge cases - **Tie at the end condition:** [gap-fill] A 50-move rule without captures in Phase 2/3, or 3-fold board state repetition, results in a declared draw. - **A player with no legal move:** If an agent has no legal slides in Phase 2, that agent loses immediately (stalemate = loss for trapped agent). - **Repetition / cycles:** Bounded by the 3-fold repetition draw rule. - **Simultaneous claims on the same resource or position:** Not applicable; turns are strictly sequential. - **Player elimination mid-round; turn order repair:** Not applicable; 2-agent duel. - **Resource exhaustion:** [gap-fill] Exactly 9 pieces per player; no extra pieces exist. - **Termination guarantee:** Guaranteed by finite state space, monotonic reduction in piece counts during captures, and the 50-move / 3-fold repetition draw breaker. ## State representation - Persistent state: - `board`: array of length 24, elements ∈{−1(empty),0,1}. - `reserve`: array `[int, int]` tracking unplaced pieces. - `on_board`: array `[int, int]` tracking pieces on board. - `current_player`: integer in `{0, 1}`. - `phase`: integer ∈{1,2,3}. - Ephemeral state: `pending_capture` boolean flag indicating whether the active agent must execute a removal before ending turn. - Observable information: Complete information, fully observable. ## Action space - `place(node_idx)`: Place reserve piece on empty node v. - `move(from_node, to_node)`: Move piece from u to v. - `remove(node_idx)`: Remove opponent piece from w upon forming a mill. ## Playability notes - Single-player-vs-AI: Engine-ready; standard Minimax / MCTS with Alpha-Beta pruning evaluates positions efficiently. - Group games (n>4): Not applicable (pure 2-agent duel). - Physical-skill games: Not applicable. - What is lost in the adaptation: Sand-drawing aesthetics and rustic stone handling. ## Implementation hints - Precompute the 16 three-in-a-row triplets and the adjacency graph. - Bitboard encoding (three 24-bit integers for player 0, player 1, and empty) yields ultra-fast evaluation.

Download as JSON

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

Download JSON
Cite this page

Syrian Morris Board Game (Syria). (n.d.). Games of Countries. https://gamesofcountries.com/games/sy-syria/al-edrees

@misc{gamesofcountries-sy-syria-al-edrees,
  title = {Syrian Morris Board Game (Syria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/sy-syria/al-edrees}
}