Skip to main content
Formal Specification

Sija — Formal Specification

Jordan · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Sija — AI-optimized specification ## General idea A turn-based abstract board game played on a 5x5 or 7x7 grid. Sija involves a distinct "sowing" (placement) phase followed by a tactical movement phase where pieces are captured by sandwiching an opponent's piece on two opposite sides. It is structurally unique in that players place all pieces on the board before any movement begins, creating a highly customized initial battlefield. ## Formal model - **Abstraction taken:** None required; the game is an abstract board game with discrete states, positions, and turns. - **Player/agent count:** 2 players. - **Turn model:** Strictly sequential, alternating. ## Formal rules R1. **Setup Phase:** 1.1. The board is a square grid of size 5x5 (25 cells) or 7x7 (49 cells). 1.2. The center cell (called the *Dar* or *house of the uncle*) starts empty and is protected. 1.3. Players take turns placing two pieces of their color onto any empty cells on the grid, except the center cell. 1.4. This continues until all pieces (12 each for 5x5, 24 each for 7x7) are placed, leaving only the center cell empty. R2. **Battle Phase Turn Order:** 2.1. The player who placed second during the setup phase makes the first move in the Battle Phase. 2.2. A player's turn consists of sliding one of their pieces into an orthogonally adjacent empty cell (up, down, left, or right). Diagonal movement is forbidden. R3. **Capturing:** 3.1. Moving a piece to sandwich an opponent's piece between two of your own pieces in a straight orthogonal line immediately captures the sandwiched piece. 3.2. Multiple captures can occur in a single turn if a move simultaneously sandwiches different opposing pieces in different orthogonal lines. 3.3. Self-sandwiching (moving your own piece between two opposing pieces) does not result in a capture. 3.4. Captured pieces are permanently removed from the board. 3.5. A piece standing inside the center cell (*Dar*) is protected and cannot be captured. R4. **Attack Chains (Al-Kar):** 4.1. If a move results in a capture, the player must immediately make another move with the *same* piece if that new move leads to another capture. 4.2. This consecutive movement and capturing chain continues as long as that same piece can execute a valid capturing move. 4.3. If no capturing move can be made with that piece, the turn ends and passes to the opponent. R5. **No Legal Move (Al-Diyah):** 5.1. [gap-fill] If a player has no legal moves (all pieces are blocked), they must pass their turn. If both players have no legal moves, the game ends in a draw. R6. **Win/Loss Conditions:** 6.1. A player wins immediately when their opponent has lost all of their pieces, or is unable to make any moves while the active player still has pieces and moves available. ## Edge cases - **Tie at the end condition:** If both players' remaining pieces are completely blocked and cannot move, the game ends in a draw (per R5.1). - **A player with no legal move:** Handled by R5.1 (player passes their turn). - **Repetition / cycles:** Because captures permanently reduce the piece count on the board, infinite cycles can only occur when remaining pieces circle each other without capturing. [gap-fill] If 20 consecutive turns pass without any captures, the game ends in a draw to break potential loops. - **Simultaneous claims on the same resource or position:** Not applicable; turns are strictly sequential. - **Player elimination mid-round; turn order repair:** Not applicable; 2 players only. - **Resource exhaustion:** Bounded by the fixed number of pieces. - **Termination guarantee:** Guaranteed by the finite state space, permanent piece elimination via captures, and the 20-turn draw limit (per repetition handling). ## State representation - **Persistent state:** Board grid (5x5 or 7x7 array of cell states: EMPTY, PLAYER_1, PLAYER_2), scores (captured pieces per player), current phase (SETUP or BATTLE), current turn (PLAYER_1 or PLAYER_2), active-attacker piece (null, or a 2D coordinate of the piece executing an Al-Kar chain). - **Per-turn ephemeral state:** Selected piece to move, destination cell. - **Observable information:** Fully observed by both players. ## Action space - `place_pieces(coord_a, coord_b)`: Used in SETUP phase; places two pieces. - `move_piece(from_coord, to_coord)`: Used in BATTLE phase; moves a piece orthogonally. ## Playability notes - **Single-player-vs-AI:** Natural; the game is fully deterministic and observable, making it highly suitable for MCTS, Minimax, or deep reinforcement learning agents. - **Group games (n>4):** Not applicable; inherently 2-player. - **What is lost in the adaptation:** None; the physical board state maps perfectly to digital direct simulation. ## Implementation hints Very clean state-space. Suggest using standard grid representation. Implement the Battle Phase transition and the nested loop for the *Al-Kar* (consecutive capture) chain as the first milestone.

Download as JSON

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

Download JSON
Cite this page

Sija (Jordan). (n.d.). Games of Countries. https://gamesofcountries.com/games/jo-jordan/sija

@misc{gamesofcountries-jo-jordan-sija,
  title = {Sija (Jordan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/jo-jordan/sija}
}