Skip to main content
Formal Specification

Lao Festival Tug-of-War — Formal Specification

Laos · strength-endurance · Confidence: high

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Deung Xeuk — AI-optimized specification ## General idea Deung Xeuk is a team tug-of-war strength and endurance contest where two balanced squads grasp opposite ends of a rope across a central line. Each team coordinates pulling effort and pacing over discrete time ticks, attempting to drag the central ribbon across their designated victory demarcation line (2.0–2.5 meters from center). Matches are contested as a best-of-three rounds series with court swaps between rounds. ## Formal model - **Abstraction taken:** The continuous mechanical tension, foot traction, and biological fatigue of rope pulling are discretized into a 1D positional displacement model over discrete time steps t∈[1,Tmax]. Each team simultaneously chooses a pulling posture (burst power, sustained pull, defensive anchor) which interacts with stamina reserves to generate net displacement Δx. - **Player/agent count:** 2 team agents (Team Red / Team Blue, representing collective squads of 8–15 pullers). - **Turn model:** Simultaneous discrete time ticks (e.g. 1 tick = 2 seconds of real pulling; maximum 60 ticks per round) [gap-fill: Tmax=60 ticks]. ## Formal rules R1. Initial State: - Rope center position x0=0.0 on a continuous axis [−Dwin,+Dwin] where Dwin=2.5 meters. - Both teams start with full stamina pool S1=100,S2=100. - Round counter r=1, match score wins1=0,wins2=0. R2. Action Selection: Each tick, both teams simultaneously commit to an effort stance: - `BURST_PULL`: High immediate force (F=1.8×Fbase), high stamina drain (ΔS=−8). - `STEADY_PULL`: Moderate force (F=1.0×Fbase), moderate stamina drain (ΔS=−3). - `DEFENSIVE_ANCHOR`: Low offensive force (F=0.4×Fbase), high resistance to displacement, low stamina drain (ΔS=−1). R3. State Transition: - Effective force per team Fi(t)=F(stancei)⋅(0.3+0.7⋅Si(t)100)+ϵi where ϵi∼𝒩(0,σ2) represents momentary footing traction variance. - Net displacement Δx=α⋅(F1(t)−F2(t)) where α is a terrain friction scaling constant. - Position update: xt+1=xt+Δx. R4. Round Resolution: - If xt+1≥Dwin (+2.5 m), Team 1 wins the round immediately (wins1←wins1+1). - If xt+1≤−Dwin (-2.5 m), Team 2 wins the round immediately (wins2←wins2+1). - If t≥Tmax (60 ticks) without crossing Dwin, the team on whose side the marker sits (x>0⟹Team 1, x<0⟹Team 2) is awarded the round [gap-fill]. R5. Match End Condition: - Matches are best-of-three rounds. The first team to win 2 rounds wins the match. - Sides swap between rounds; stamina resets to S0=100 minus a cumulative fatigue deduction [gap-fill: Sstart, round k=100−10×(k−1)]. R6. [gap-fill] Foul penalty: An agent attempting 3 consecutive `BURST_PULL` actions when stamina is <10 suffers a slip penalty (opponent receives an unresisted +1.0 m pull bonus). ## Edge cases - **Tie at the end condition:** If t=Tmax and xt=0.0 exactly, a 10-tick sudden-death extension is initiated; if still tied, the round is replayed from center. - **A player with no legal move:** Not applicable; all three action stances are always valid. - **Repetition / cycles:** Bounded strictly by Tmax=60 ticks per round and best-of-three structure. - **Simultaneous claims on the same resource or position:** Both teams pull simultaneously; opposing forces resolve algebraically into net scalar displacement Δx. - **Player elimination mid-round; turn order repair:** Not applicable; team entities persist for the entire match duration. - **Resource exhaustion:** Depleted stamina limits effective force output (Fi→0.3×Fbase), leaving the exhausted team vulnerable to displacement. - **Termination guarantee: why the game provably ends:** Each round terminates in at most Tmax=60 ticks (either by crossing Dwin or timeout evaluation under R4), guaranteeing the full best-of-three match concludes in at most 180 ticks. ## State representation - Persistent state: Match score (wins1,wins2), current round index r∈{1,2,3}, team overall stamina baseline. - Per-tick ephemeral state: Current rope position x∈[−2.5,+2.5], stamina pools (S1,S2), active tick counter t∈[1,60], action choices (a1,a2). - Observable information: Fully observable — current rope displacement, tick clock, score, and visible exhaustion/stamina indicators are public knowledge. ## Action space - `burst_pull()`: High force output, heavy stamina consumption. - `steady_pull()`: Standard pacing pull, sustainable drain. - `defensive_anchor()`: Dig in heels, reduce opponent forward progress while conserving energy. ## Playability notes - Single-player-vs-AI: Natural 1v1 tactical stamina management duel. The human player tries to bait the AI into premature burst exhaustion before executing a counter-surge. - Group games (n>4): In multi-agent settings, individual agents contribute separate sub-vectors to team force, requiring intra-team coordination signals. - Physical-skill games: Physical isometric strength and grip endurance are mapped to stamina decay curves and simultaneous stance interactions. - What is lost in the adaptation: The somatic tactile feedback of rope friction, collective rhythmic shouting (*"Sam, Si, Deung!"*), and physical team mass dynamics. ## Implementation hints Treat rope position as a scalar clamped to [−2.5,2.5]. Branching factor is 3 choices per agent per tick (3×3=9 joint actions). Milestone 1: Build the 1D state transition engine with stamina decay and timeout rules; Milestone 2: Implement heuristic AI that anchors during enemy bursts and surges during enemy recovery.

Download as JSON

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

Download JSON
Cite this page

Lao Festival Tug-of-War (Laos). (n.d.). Games of Countries. https://gamesofcountries.com/games/la-laos/deung-xeuk

@misc{gamesofcountries-la-laos-deung-xeuk,
  title = {Lao Festival Tug-of-War (Laos)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/la-laos/deung-xeuk}
}