Formal Specification
Snake Eats Its Tail / Mother Snake Chasing Game — Formal Specification
Laos · singing-circle · Confidence: high
← Back to game pageImplementation 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 ( grid cells) [gap-fill]. The Mother Snake is the head of an articulated kinematic snake segment chain of length ; the Hunter is an independent mobile agent.
- **Player/agent count:** agents (): 1 Hunter (), 1 Mother Snake (), Child Snake links ().
- **Turn model:** Two-phase loop: Phase 1 (Dialogue Chant, deterministic turn transition); Phase 2 (Active Chase, simultaneous movement ticks up to ticks per chase round) [gap-fill: ticks].
## Formal rules
R1. Setup & Formation:
- Mother Snake starts at coordinate .
- Child Snakes occupy trailing contiguous grid cells , maintaining strict adjacency constraints .
- Hunter starts at 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 .
R3. Phase 2 — Simultaneous Chase Movement:
- Each tick, and select movement vectors .
- Hunter speed: grid steps per tick [gap-fill: Hunter speed advantage].
- Mother Snake speed: grid step per tick; Mother blocks any path vector of intersecting her lateral reach ().
- Snake Chain Kinematics: When moves, each segment advances to the previous position of (classical inverse kinematics / snake movement).
R4. Tagging & Capture Conditions:
- **Tail Tag:** If Hunter reaches Manhattan distance without being blocked by , the tail child is `CAPTURED`.
- **Chain Break (*Khat Sai*):** If any child fails an evasion movement check, the chain breaks: is `CAPTURED` immediately.
R5. Post-Capture Turnover:
- When a child is `CAPTURED`, that child is removed from the snake chain ().
- If , a new Phase 1 dialogue begins.
- If (all children captured), the round terminates; the first child captured becomes the Hunter for the subsequent match.
R6. [gap-fill] Chase Round Timeout: If 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 ticks, and the match concludes when all 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 .
- **Resource exhaustion:** The child snake pool strictly decreases monotonically to 0.
- **Termination guarantee: why the game provably ends:** In each round, either a child is captured or 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 , capture history queue.
- Per-tick ephemeral state: Coordinates , tick counter , 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 is the target tail. Hunter AI can use 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 JSONCite 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}
}