Skip to main content
Formal Specification

Tiger Stabbing Piglets (also known as Khla Chab Koun) — Formal Specification

Cambodia · chase-tag · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Khla Chak Koun — AI-optimized specification ## General idea An asymmetric pursuit-evasion and perimeter-defense game on a 2D discrete circular arena. One agent acts as the prowling Tiger (*Khla*) attempting to dart past the perimeter to snatch stationary Piglet tokens (*Koun Chrouk*) in the central nest, while the defending Mother agent (*Me Chrouk*) patrols the boundary to intercept and tag the Tiger before contact is made. ## Formal model - **Abstraction taken:** Continuous physical circling, feinting, and tagging are discretized onto a 2D Cartesian grid centered at the nest, with simultaneous tick-based movement and distance-based tag/interception thresholds. - **Player/agent count:** 2 decision agents: `Tiger` (T) and `Mother` (M), plus K passive stationary `Piglet` entities (P1…PK). - **Turn model:** Simultaneous tick-based simulation (Δt=1 tick). ## Formal rules R1. Arena Setup: A 9×9 discrete grid centered at (0,0). The Nest zone is defined as the disk Dnest={(x,y)|x2+y2≤4} (radius R=2). K Piglet tokens are placed at static coordinates inside x2+y2≤1. R2. Starting Positions: - Tiger T starts outside the perimeter at distance r≥4 (e.g. (0,4)). - Mother M starts on the perimeter ring 1≤r≤2 (e.g. (0,2)). R3. Movement per Tick: - Tiger T selects movement (ΔxT,ΔyT) with maximum speed ‖ΔposT‖2≤2.0. - Mother M selects movement (ΔxM,ΔyM) with maximum speed ‖ΔposM‖2≤1.5, subject to the invariant that M must remain within x2+y2≤6.25 (radius ≤2.5). R4. Encroachment and Contact Resolution: - If Tiger T moves to inside the nest perimeter (rT≤2.0): - **Mother Interception:** If Euclidean distance ‖posM−posT‖2≤1.5, Mother successfully tags Tiger. The round ends immediately with Mother victory. - **Piglet Capture:** If Mother does not intercept and ‖posT−posPi‖2≤1.0 for any active Piglet Pi, Piglet Pi is captured and removed from play. Tiger T is automatically repositioned outside the perimeter at r=4.0 for the next assault. R5. [gap-fill] Time Limit / Stamina Cap: The match is bounded by Tmax⁡=60 ticks. R6. Win Conditions: - **Tiger Wins:** If all K piglets are captured (Kactive=0) before Tmax⁡ ticks elapse. - **Mother Wins:** If Mother intercepts/tags Tiger (R4), OR [gap-fill] if Tmax⁡ ticks expire with ≥1 piglet remaining uncaptured. ## Edge cases - **Tie at the end condition:** Not applicable — binary outcome: Mother wins if Tiger is tagged or time expires with surviving piglets; Tiger wins only if all piglets are cleared. - **A player with no legal move:** Stationary `wait` (zero movement vector) is always legal for both agents. - **Repetition / cycles (and the loop-breaking rule):** Bounded by strict monotonic tick decrement toward Tmax⁡=60. - **Simultaneous claims on the same resource or position:** Resolved by explicit priority in R4: Mother interception evaluation occurs strictly before Piglet capture when Tiger enters the shared reach zone. - **Player elimination mid-round; turn order repair:** When a Piglet is tagged, it is removed from active state; agent turn structure is unaffected since Piglets are passive tokens. - **Resource exhaustion:** Piglet count is finite (K→0); time ticks strictly deplete (60→0). - **Termination guarantee: why the game provably ends:** Guaranteed by the hard cap Tmax⁡=60 ticks and the monotone reduction of target piglets. ## State representation - `tiger_pos`: 2D float coordinate (xT,yT). - `mother_pos`: 2D float coordinate (xM,yM). - `piglet_positions`: array of active 2D coordinates [(x1,y1),…,(xK,yK)]. - `active_piglets`: bitmask or set of uncaptured piglet IDs. - `tick_counter`: integer in 0..60. - Observable information: Fully observable by both agents. ## Action space - For Tiger: `move(dx, dy)` where dx2+dy2≤2.0. - For Mother: `patrol_and_block(dx, dy)` where dx2+dy2≤1.5 and (xM+dx)2+(yM+dy)2≤6.25. ## Playability notes - **Single-player-vs-AI:** Highly playable — human controls Tiger executing angular feints and sudden sprint breaches, or human Mother calculating optimal geometric perimeter shielding. - **Group games (n>4):** Reduces cleanly into 2 active decision agents (Tiger vs Mother), with other players represented as passive target tokens in the nest. - **What is lost:** Physical body-feints, tactile tagging contact, and vocal teasing chants are converted into 2D pursuit-evasion reach mechanics. ## Implementation hints - Mother optimal strategy involves maintaining angular alignment between the Tiger and the centroid of remaining Piglets while staying near the perimeter. - Branching factor: Discretizing movement angles into 8 compass directions plus idle yields 9 actions per agent (81 combined joint actions per tick). - Suggested first milestone: Implement the 2D arena geometry, velocity clamping, and interception/capture priority check before tuning AI pathing.

Download as JSON

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

Download JSON
Cite this page

Tiger Stabbing Piglets (also known as Khla Chab Koun) (Cambodia). (n.d.). Games of Countries. https://gamesofcountries.com/games/kh-cambodia/khla-chak-koun

@misc{gamesofcountries-kh-cambodia-khla-chak-koun,
  title = {Tiger Stabbing Piglets (also known as Khla Chab Koun) (Cambodia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/kh-cambodia/khla-chak-koun}
}