Skip to main content
Formal Specification

Lao Tip-Cat / Two-Stick Striking Game — Formal Specification

Laos · dexterity-throw · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 4
# Mai Hueng — AI-optimized specification ## General idea Mai Hueng is a traditional two-stick striking and fielding game (tip-cat family) played with a long wooden bat (*mai meang*) and a short double-tapered peg (*mai noy*). The batting team progresses through three distinct striking phases of increasing difficulty: an under-trench scoop toss, a self-tossed aerial hit, and a tip-and-strike where tapping the peg's tapered edge pops it into the air for a mid-flight drive. Fielders attempt to catch the flying peg or throw it back to hit the base bat to record an out (*tai*), while successful phase 3 hits score points measured in bat lengths back to the home trench. ## Formal model - **Abstraction taken:** The continuous aerodynamics of the spinning wooden peg, mid-air timing collisions, and outfield throwing accuracy are parameterized into stochastic action outcomes. Batting agents choose swing power and elevation, while fielding agents position across outfield sectors. - **Player/agent count:** 2 teams (Tbat,Tfield), each with 1 to 6 agents. - **Turn model:** Sequential innings; active batter attempts a 3-phase sequence per batting turn. ## Formal rules R1. Setup: - Target score Starget=50 bat lengths [gap-fill: standard 50-point match]. - Batting order established per team; fielding team disperses across outfield sectors (near, mid, deep). - Inning counter I=1, active batter index k=1. R2. Phase 1 (Scoop & Return): - Batter executes `scoop_toss(power)`. Peg lands at distance D1∼𝒩(μ1(power),σ12). - Catch check: P(catch)=f(fielder_proximity,hangtime). If caught, batter is `OUT` immediately. - Return throw: If uncaught, nearest fielder throws peg toward bat laid across trench: P(hit bat)=max⁡(0.05,0.70−0.02×D1) [gap-fill]. If peg hits bat, batter is `OUT`. Otherwise, batter advances to Phase 2. R3. Phase 2 (Toss & Hit): - Batter executes `toss_and_hit(power, angle)`. Peg lands at distance D2. - Catch check: If caught on the fly, batter is `OUT`. - Ground return: If uncaught, fielder throws peg back: if peg lands ≤1 bat-length (Lbat) from trench, batter is `OUT`. Otherwise, batter advances to Phase 3. R4. Phase 3 (Tip & Drive — *Hueng Mai*): - Batter executes `tip_and_strike(timing, power)`. - Contact check: P(solid hit)=f(batter_skill,timing). - If contact fails: Batter is `OUT`. - If contact succeeds: Peg travels distance D3. Catch check applies. - Scoring: If uncaught, score awarded =⌊D3/Lbat⌋ points. Score accumulates to Tbat. R5. Inning Turnover & Team Rotation: - When active batter is `OUT`, next teammate in batting order steps up. - When all batters of Tbat are `OUT`, the inning half ends: teams swap roles (Tbat↔Tfield). R6. Win Condition: - The first team to reach or exceed Starget=50 points at the completion of equal innings wins the match. R7. [gap-fill] Inning limit: If neither team reaches Starget within 6 full innings, the team with the higher score wins. ## Edge cases - **Tie at the end condition:** If scores are tied after 6 innings, one additional full extra inning is played; if still tied, a Phase 3 sudden-death distance hit determines the winner [gap-fill]. - **A player with no legal move:** Not applicable; batting and fielding roles have mandatory deterministic action sequences. - **Repetition / cycles:** Bounded by finite outs per inning (all batters eliminated per half) and R7's 6-inning limit. - **Simultaneous claims on the same resource or position:** In fielding, if two fielders can attempt a catch, the resolver selects the fielder with the higher sector coverage rating without collision penalty. - **Player elimination mid-round; turn order repair:** When a batter is recorded `OUT`, the turn immediately advances to the next sequential index (k+1)(modN); when k=N, inning concludes. - **Resource exhaustion:** Wooden bat and peg are persistent and non-depleting. - **Termination guarantee: why the game provably ends:** Every batting attempt has a strictly positive probability of an `OUT` (P(out)≥0.10 per phase), ensuring every half-inning terminates in finite turns, and R7 bounds the match to at most 6 full innings. ## State representation - Persistent state: Team cumulative scores (scoreA,scoreB), current inning index I∈[1,6], active batting team ID, batting order queues. - Per-phase ephemeral state: Active phase p∈{1,2,3}, peg ground coordinates (x,y), landing distance D, out status flag. - Observable information: Fully observable — scores, phase progression, fielder positions, and distance measurements are public. ## Action space - `scoop_toss(power)`: Execute Phase 1 trench scoop. - `toss_and_hit(power, angle)`: Execute Phase 2 aerial swing. - `tip_and_strike(timing, power)`: Execute Phase 3 downward tap and drive. - `position_fielders(sector_allocations)`: (Fielding team) Allocate fielders across outfield zones. ## Playability notes - Single-player-vs-AI: Very enjoyable as an asymmetric baseball/cricket-style arcade strategy game, alternating between timing batting swings and positioning defensive fielders. - Group games (n>4): Reduces naturally to team rosters with individual batting rotations and zone fielding. - Physical-skill games: Physical tip-and-strike coordination is abstracted into timing windows and power-distance distributions. - What is lost in the adaptation: The tactile satisfaction of whittling bamboo pegs, the sharp acoustic crack of wood on wood, and outfield sprinting under the Lao sun. ## Implementation hints Represent distance as a floating-point meter value normalized by Lbat=0.6 m. Branching factor is continuous for power/angle but easily discretized into 3 power levels and 3 angle bands. Milestone 1: Implement the 3-phase batting state machine with out conditions; Milestone 2: Add distance measuring and inning role rotation.

Download as JSON

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

Download JSON
Cite this page

Lao Tip-Cat / Two-Stick Striking Game (Laos). (n.d.). Games of Countries. https://gamesofcountries.com/games/la-laos/mai-hueng

@misc{gamesofcountries-la-laos-mai-hueng,
  title = {Lao Tip-Cat / Two-Stick Striking Game (Laos)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/la-laos/mai-hueng}
}