Skip to main content
Formal Specification

Snake Eats Its Tail / Mother Snake Chasing Game — Formal Specification

Laos · singing-circle · Confidence: high

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Ngoo Kin Hang — AI-optimized specification ## General idea Ngoo Kin Hang is a traditional Lao singing and physical chasing game where a predatory Hunter (*Phor Ee-Haeng*) attempts to capture children forming the tail of a connected human chain led by the protective Mother Snake (*Mae Ngoo*). Following an antiphonal dialogue chant, the Hunter darts laterally to tag the final link of the snake's tail, while the Mother Snake extends her arms to physically obstruct the Hunter's line of approach and the children whip the tail in counter-motion to evade capture without breaking their grip. ## Formal model - **Abstraction taken:** The continuous physical dodging, arm blocking, and serpentine chain dynamics are discretized on a 2D bounded continuous or discrete grid (W×H=15×15 grid cells) [gap-fill]. The Mother Snake is the head of an articulated kinematic snake segment chain of length K; the Hunter is an independent mobile agent. - **Player/agent count:** N agents (3≤N≤12): 1 Hunter (H), 1 Mother Snake (M), K=N−2 Child Snake links (C1…CK). - **Turn model:** Two-phase loop: Phase 1 (Dialogue Chant, deterministic turn transition); Phase 2 (Active Chase, simultaneous movement ticks up to Tmax=30 ticks per chase round) [gap-fill: Tmax=30 ticks]. ## Formal rules R1. Setup & Formation: - Mother Snake M starts at coordinate (x0,y0). - Child Snakes C1…CK occupy trailing contiguous grid cells (x0,y0−1),(x0,y0−2)…(x0,y0−K), maintaining strict adjacency constraints ‖pCi−pCi−1‖≤1. - Hunter H starts at (x0,y0+3) facing the Mother Snake. R2. Phase 1 — Antiphonal Dialogue: - A 3-step structured dialogue state machine executes deterministically before each chase phase, establishing the chase target as the tail segment CK. R3. Phase 2 — Simultaneous Chase Movement: - Each tick, H and M select movement vectors v→∈{(0,±1),(±1,0),(0,0)}. - Hunter speed: ‖vH‖≤2 grid steps per tick [gap-fill: Hunter speed advantage]. - Mother Snake speed: ‖vM‖≤1 grid step per tick; Mother blocks any path vector of H intersecting her lateral reach (‖pH−pM‖≤1). - Snake Chain Kinematics: When M moves, each segment Ci advances to the previous position of Ci−1 (classical inverse kinematics / snake movement). R4. Tagging & Capture Conditions: - **Tail Tag:** If Hunter reaches Manhattan distance d(pH,pCK)≤1 without being blocked by M, the tail child CK is `CAPTURED`. - **Chain Break (*Khat Sai*):** If any child Ci fails an evasion movement check, the chain breaks: Ci is `CAPTURED` immediately. R5. Post-Capture Turnover: - When a child is `CAPTURED`, that child is removed from the snake chain (K←K−1). - If K>0, a new Phase 1 dialogue begins. - If K=0 (all children captured), the round terminates; the first child captured becomes the Hunter for the subsequent match. R6. [gap-fill] Chase Round Timeout: If Tmax=30 ticks elapse without a capture, the Mother Snake successfully defends the round: the tail child remains safe, and a new Phase 1 begins. ## Edge cases - **Tie at the end condition:** Not applicable; captures and timeouts are mutually exclusive per chase round. - **A player with no legal move:** Not applicable; stationary wait is always legal. - **Repetition / cycles:** Bounded because each chase phase has a hard timeout of Tmax=30 ticks, and the match concludes when all K children are captured. - **Simultaneous claims on the same resource or position:** The Hunter cannot step into the exact cell occupied by the Mother Snake (treated as an impassable physical obstacle). - **Player elimination mid-round; turn order repair:** Captured children are removed from the active chain; the new tail index becomes K−1. - **Resource exhaustion:** The child snake pool K strictly decreases monotonically to 0. - **Termination guarantee: why the game provably ends:** In each round, either a child is captured or Tmax timeout occurs; with a global round cap of 15 dialogue cycles, the entire game provably concludes in finite time. ## State representation - Persistent state: Hunter agent ID, Mother Snake agent ID, remaining child roster [C1…CK], capture history queue. - Per-tick ephemeral state: Coordinates (pH,pM,pC1…pCK), tick counter t∈[1,30], active phase enum (`DIALOGUE`, `CHASE`). - Observable information: Fully observable — all agent coordinates and chain links are public knowledge. ## Action space - `move_hunter(dx, dy)`: Hunter directional sprint. - `block_mother(dx, dy, arm_extend)`: Mother Snake lateral positioning and blocking stance. - `evade_chain(swing_direction)`: Child chain lateral swing vector. ## Playability notes - Single-player-vs-AI: Fun tactical arcade puzzle playing as Hunter (finding flanking angles around the Mother) or Mother Snake (anticipating Hunter dashes). - Group games (n>4): Excellent multi-agent environment where child agents must collectively coordinate evasive tail whipping. - Physical-skill games: Physical body agility and grip strength are modeled as kinematic chain constraints and movement point differentials. - What is lost in the adaptation: The joyous melodic singing of the Lao water-well verses, childhood laughter, and tactile pulling sensation. ## Implementation hints Treat the snake as an articulated array of coordinates where index 0 is the Mother and index K is the target tail. Hunter AI can use A∗ pathfinding with dynamic obstacle avoidance around the Mother's blocking zone. Milestone 1: Implement the kinematic chain movement and Hunter chase loop; Milestone 2: Implement Mother blocking collisions and dialogue state machine.

Download as JSON

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

Download JSON
Cite this page

Snake Eats Its Tail / Mother Snake Chasing Game (Laos). (n.d.). Games of Countries. https://gamesofcountries.com/games/la-laos/ngoo-kin-hang

@misc{gamesofcountries-la-laos-ngoo-kin-hang,
  title = {Snake Eats Its Tail / Mother Snake Chasing Game (Laos)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/la-laos/ngoo-kin-hang}
}