Skip to main content
Formal Specification

Animal Chess (Jungle Game) — Formal Specification

China · board-abstract · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 3
# Dou Shou Qi — AI-optimized specification ## General idea A deterministic two-player abstract strategy board game played on a 7×9 grid featuring terrain obstacles (dens, traps, and two 2×3 river water zones). Each player commands eight animal pieces of hierarchical strength (Elephant rank 8 down to Rat rank 1), navigating cyclic captures (Elephant beats Lion, but Rat beats Elephant on land), special river-jumping abilities for Lions and Tigers, and defensive nullification in opponent traps to enter and occupy the opponent's Den. ## Formal model - **Abstraction taken:** None required; complete discrete board game with unambiguous grid mechanics. - **Player/agent count:** 2 players (Player 1 / Blue vs. Player 2 / Red). - **Turn model:** Strictly sequential alternating turns; Red moves first. ## Formal rules R1. Board Geography: A 7-column by 9-row grid (63 cells, coordinates (r,c) where r∈[1,9],c∈[1,7]): - **Dens (*Shouxue*):** Player 1 Den at (1,4); Player 2 Den at (9,4). - **Traps (*Xianjing*):** Player 1 Traps at {(1,3),(1,5),(2,4)}; Player 2 Traps at {(9,3),(9,5),(8,4)}. - **Rivers (*Helui*):** Two 2×3 zones at rows 4–6, cols 2–3 and cols 5–6 (12 water cells total). - **Land Cells:** Remaining 47 standard terrain squares. R2. Piece Inventory & Hierarchy: Each player controls 8 pieces with fixed ranks: - Elephant (象, Rank 8), Lion (狮, Rank 7), Tiger (虎, Rank 6), Leopard (豹, Rank 5), - Wolf (狼, Rank 4), Dog (狗, Rank 3), Cat (猫, Rank 2), Rat (鼠, Rank 1). R3. Movement Mechanics: - On their turn, a player moves exactly one friendly piece 1 step orthogonally (North, South, East, West) to an adjacent square. - A piece may never enter its own team's home Den. R4. Capture Hierarchy: - An animal may capture an opponent's piece on the destination cell if its rank is ≥ the opponent's rank. - **Rat vs. Elephant:** The Rat (Rank 1) can capture the Elephant (Rank 8) on land. The Elephant cannot capture the Rat. - **Trap Rule:** Any animal standing in an opponent's Trap cell has its effective defensive rank reduced to 0, allowing any opposing piece to capture it. R5. River & Special Moves: - **Rat Swimming:** The Rat is the only piece permitted to enter River cells. A Rat in water cannot attack an Elephant on land. A land piece cannot attack a Rat in water. Two Rats in water may capture each other normally. - **Lion & Tiger River Leaps:** A Lion or Tiger standing on a riverbank cell may leap directly over the river horizontally or vertically to the opposite bank in one move. If an opposing piece of equal or lower rank is on the landing cell, it is captured. If any Rat (friendly or hostile) is present in any river cell along the leap path, the jump is blocked. R6. Win Conditions: - **Den Occupation:** A player wins immediately upon moving any piece into the opponent's Den cell. - **Annihilation / Stalemate:** A player wins if the opponent has no remaining pieces or no legal moves on their turn. R7. [gap-fill] Threefold Repetition Rule: If an identical board state and turn order occurs three times in a match, the game is declared an immediate draw. R8. [gap-fill] Turn Limit: If 150 total moves (75 per player) elapse without a piece capture, the match ends in a draw. R9. [gap-fill] Perpetual Chase Prohibition: A piece is prohibited from continuously chasing an opponent piece along an identical path for more than 4 consecutive moves without varying the move. ## Edge cases - **Tie at the end condition:** Possible via R7 (threefold repetition) or R8 (150-move capture limit). - **A player with no legal move:** Stalemate results in an immediate loss for the player unable to move (R6). - **Repetition / cycles:** Bounded by R7 (threefold repetition) and R9 (perpetual chase ban). - **Simultaneous claims on the same resource or position:** Not applicable (strictly sequential alternating turns). - **Player elimination mid-round:** Not applicable (2-player match). - **Resource exhaustion:** Captured pieces are permanently removed from play. - **Termination guarantee:** Provably terminates within 150 moves by R8. ## State representation - **Persistent state:** `board[9][7]` storing `{Empty, (owner, piece_rank)}`, `turn_count`, `moves_since_capture`, `position_history_table`. - **Per-turn state:** `active_player`, `legal_moves_list`. - **Observable information:** Perfect information, fully observable. ## Action space - `move_piece(from_row, from_col, to_row, to_col)`: Execute orthogonal step or river leap. ## Playability notes - **Single-player-vs-AI:** Highly engine-ready; easily modeled with Alpha-Beta minimax, Expectiminimax, or MCTS engines. - **Group games (n>4):** Not applicable (pure 2-player abstract). - **What is lost in the adaptation:** None; complete mathematical representation of traditional board rules. ## Implementation hints Compact 7×9 grid (63 squares). Board and piece states fit cleanly in 64-bit integer bitboards or small 2D arrays. Branching factor is typically between 8 and 30 legal moves per turn.

Download as JSON

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

Download JSON
Cite this page

Animal Chess (Jungle Game) (China). (n.d.). Games of Countries. https://gamesofcountries.com/games/cn-china/dou-shou-qi

@misc{gamesofcountries-cn-china-dou-shou-qi,
  title = {Animal Chess (Jungle Game) (China)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/cn-china/dou-shou-qi}
}