Skip to main content
Formal Specification

Tip-Cat / Dual-Stick Striking Game — Formal Specification

Vietnam · stick-team · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Đánh khăng — AI-optimized specification ## General idea Đánh khăng is a traditional Vietnamese dual-stick batting and fielding game played on open rural fields. A batter uses a long wooden mother stick (*khăng mẹ*) to launch a short wooden peg (*khăng con*) through three progressive striking stages—prying from a ground pit (*Cày*), hand-toss batting (*Mắm*), and aerial tip-tapping (*Gà*). Fielders attempt to catch the flying peg or throw it back to hit the home trench, while the batter seeks to survive all three stages to score points measured in stick lengths. ## Formal model - **Abstraction taken:** The 3D stick aerodynamics, tip-striking physics, and manual fielding throws are abstracted into a sequential stage-progression state machine with stochastic hit, distance, and throw-back resolution [gap-fill: physical stick aerodynamics, tip-tapping, batting swings, and throw-back trajectories are modeled via parameterized stochastic outcome distributions]. - **Player/agent count:** 2 agents (Batting Agent and Fielding Agent, alternating roles). - **Turn model:** Sequential phase-based turn execution across innings. ## Formal rules R1. Setup and Innings: - Equipment: Mother stick length Lstick=0.45 m. - Match consists of Ninnings=3 innings per side. - Team scores initialized at SA=0,SB=0. - Batting player begins at Stage 1 (k=1). R2. The Three Batting Stages: - **Stage 1 (Cày / Prying):** - Batter launches peg from the pit. - Flight distance: D1∼LogNormal(μ1⋅skillbat,σ12). - Fielding catch check: P(catch)=0.15⋅skillfield. If caught, batter is OUT; role swaps. - If uncaught: Fielding throw-back to hit the mother stick laid across the pit. Throw-back accuracy P(hit)=clamp(0.80⋅exp⁡(−D1/30),0.05,0.90). If hit, batter is OUT; else advances to Stage 2. - **Stage 2 (Mắm / Toss-and-Bat):** - Batter tosses peg and bats it horizontally. - Flight distance: D2∼LogNormal(μ2⋅skillbat,σ22) (with μ2>μ1). - Catch check: P(catch)=0.20⋅skillfield. If caught, batter is OUT. - If uncaught: Fielder throws peg to land within 1⋅Lstick of the pit. Throw-back accuracy P(close)=clamp(0.70⋅exp⁡(−D2/40),0.05,0.85). If within 1 stick, batter is OUT; else advances to Stage 3. - **Stage 3 (Gà / Tip-Tap-Strike):** - [gap-fill] Batter has at most 2 attempts to tip the propped peg airborne and strike it horizontally. - If cleanly struck, flight distance D3∼LogNormal(μ3⋅skillbat,σ32) (with μ3>μ2). - Catch check: P(catch)=0.25⋅skillfield. If caught or both swings missed, batter is OUT. - [gap-fill] If uncaught: Fielder throws peg toward the pit. Throw-back accuracy P(hit_pit)=clamp(0.60⋅exp⁡(−D3/50),0.05,0.80). If peg lands in the pit, batter is OUT. R3. Scoring: - If the batter successfully completes Stage 3 without being put OUT, points are awarded based on final distance: Points=⌊D3/Lstick⌋ - The batting side adds these points to its cumulative score: Sbat←Sbat+Points. R4. Role Inversion and Inning Advancement: - Whenever an OUT occurs, or immediately after Stage 3 scoring, the half-inning ends. - Roles swap: Batting side becomes Fielding side, and vice versa. R5. [gap-fill] Match Conclusion and Forfeit: - After both teams have completed Ninnings=3 batting innings, the team with the higher cumulative score wins. - The losing side incurs the symbolic running penalty (*chạy khăng*). ## Edge cases - Tie at the end condition: If both teams have equal scores after 3 innings, 1 additional sudden-death overtime inning is played per side until the tie is broken. - A player with no legal move: Inactive fielding agent during batting swings only participates in reactive catch/throw checks; all actions are state-driven. - Repetition / cycles: Bounded strictly by the fixed number of innings (Ninnings=3) and finite stages (k∈{1,2,3}). - Simultaneous claims on the same resource or position: Not applicable; batting and fielding actions alternate sequentially. - Player elimination mid-round; turn order repair: An OUT immediately terminates the active half-inning; roles rotate cleanly to the opposing team. - Resource exhaustion: The peg and mother stick are permanent equipment reset at the pit after every stage. - Termination guarantee: why the game provably ends: Each half-inning terminates in at most 3 batting stages; total game length is bounded at 2×Ninnings half-innings. ## State representation - Persistent state: - `score_A`, `score_B`: non-negative integers (measured in stick lengths). - `current_inning`: integer ∈[1,3]. - `batting_team`: enum `{TEAM_A, TEAM_B}`. - Per-round ephemeral state: - `current_stage`: integer k∈{1,2,3}. - `stage3_foul_count`: integer ∈[0,2]. - `last_peg_distance`: float (meters). - `half_inning_complete`: boolean. - Observable information: - Fully observed by both agents: scores, current stage, inning count, and distance measurements. ## Action space - Batting Agent: - `execute_stroke(stage, power_ratio)`: power_ratio ∈[0.5,1.0]. - Fielding Agent: - `attempt_catch()`: reactive catch roll. - `throw_back(target_mode)`: target_mode ∈{STICK,RADIUS,PIT}. ## Playability notes - Single-player-vs-AI: Highly playable; human player can execute tactical risk/reward batting choices against an AI fielding model. - Group games (n>4): In team play (2v2 or 4v4), batting order rotates through team members, while fielders position across the zone; cleanly reducible to 1v1 without losing the core batting-vs-fielding duel. - Physical-skill games: Physical batting timing and throwing precision are abstracted into the LogNormal distance distributions and exponential accuracy decay formulas. - What is lost in the adaptation: The danger of high-speed wooden pegs whistling past fielders' ears and the hilarious vocal strain of the single-breath running forfeit (*chạy khăng*). ## Implementation hints - Implement as a discrete turn-based state machine with 3 sequential stages per half-inning. - Distance distributions can be calibrated so average Stage 3 hits yield 50–120 stick lengths (~25–60 meters). - Suggested first milestone: Implement R1–R3 batting stages and verify that simulated innings produce expected out rates and scoring ranges.

Download as JSON

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

Download JSON
Cite this page

Tip-Cat / Dual-Stick Striking Game (Vietnam). (n.d.). Games of Countries. https://gamesofcountries.com/games/vn-vietnam/danh-khang

@misc{gamesofcountries-vn-vietnam-danh-khang,
  title = {Tip-Cat / Dual-Stick Striking Game (Vietnam)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/vn-vietnam/danh-khang}
}