Formal Specification
Tiger Stabbing Piglets (also known as Khla Chab Koun) — Formal Specification
Cambodia · chase-tag · Confidence: low
← Back to game pageImplementation 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` () and `Mother` (), plus passive stationary `Piglet` entities ().
- **Turn model:** Simultaneous tick-based simulation ( tick).
## Formal rules
R1. Arena Setup: A discrete grid centered at . The Nest zone is defined as the disk (radius ). Piglet tokens are placed at static coordinates inside .
R2. Starting Positions:
- Tiger starts outside the perimeter at distance (e.g. ).
- Mother starts on the perimeter ring (e.g. ).
R3. Movement per Tick:
- Tiger selects movement with maximum speed .
- Mother selects movement with maximum speed , subject to the invariant that must remain within (radius ).
R4. Encroachment and Contact Resolution:
- If Tiger moves to inside the nest perimeter ():
- **Mother Interception:** If Euclidean distance , Mother successfully tags Tiger. The round ends immediately with Mother victory.
- **Piglet Capture:** If Mother does not intercept and for any active Piglet , Piglet is captured and removed from play. Tiger is automatically repositioned outside the perimeter at for the next assault.
R5. [gap-fill] Time Limit / Stamina Cap: The match is bounded by ticks.
R6. Win Conditions:
- **Tiger Wins:** If all piglets are captured () before ticks elapse.
- **Mother Wins:** If Mother intercepts/tags Tiger (R4), OR [gap-fill] if ticks expire with 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 .
- **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 (); time ticks strictly deplete ().
- **Termination guarantee: why the game provably ends:** Guaranteed by the hard cap ticks and the monotone reduction of target piglets.
## State representation
- `tiger_pos`: 2D float coordinate .
- `mother_pos`: 2D float coordinate .
- `piglet_positions`: array of active 2D coordinates .
- `active_piglets`: bitmask or set of uncaptured piglet IDs.
- `tick_counter`: integer in .
- Observable information: Fully observable by both agents.
## Action space
- For Tiger: `move(dx, dy)` where .
- For Mother: `patrol_and_block(dx, dy)` where and .
## 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 JSONCite 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}
}