Skip to main content
Formal Specification

Siamese Weapons Martial Art — Formal Specification

Thailand · wrestling-combat · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 5
# Krabi-Krabong — AI-optimized specification ## General idea A Siamese weapons fencing and martial contest where two combatants wield traditional unpeeled rattan simulation weaponry (e.g. single/double swords *Dap*, quarterstaff *Krabong*, or polearm *Ngao*). Following a ritual teacher-homage dance (*Wai Khru*), combatants engage in high-speed striking exchanges scored across multiple rounds by a 5-judge panel evaluating clean strikes, parries, disarms, and classical posture. ## Formal model - **Abstraction taken:** Continuous physical fencing movements, weapon trajectories, and footwork are abstracted into discrete combat exchanges within timed rounds. In each exchange, combatants simultaneously choose an offensive strike, defensive parry, or evasive maneuver; outcomes and judge scores are calculated via a stochastic resolver parameterized by weapon type, combatant skill attributes, and tactical counter-matchups. - **Player/agent count:** 2 combatants (Player 1 and Player 2). - **Turn model:** Simultaneous action selection per exchange tick within 3 regulation rounds. ## Formal rules R1. Setup: Both combatants start in standing guard with maximum stamina (`100`) and weapon grip intact (`weapon_dropped_count = 0`). The bout is scheduled for 3 rounds of 10 exchanges each. R2. [gap-fill] Action Selection: On each exchange tick, both combatants secretly and simultaneously select one action from the legal martial set: - Offensive Strikes: `Slash_High` (targets head/shoulders), `Thrust_Mid` (targets torso), `Sweep_Low` (targets legs). - Defensive Manoeuvers: `Parry_High`, `Parry_Mid`, `Parry_Low`, `Evasive_Footwork` (steps back/circles). - Special Technique: `Disarm_Attempt` (*Plod Awut* - risky maneuver to dislodge opponent's weapon). R3. [gap-fill] Exchange Resolution Matrix: - If an offensive strike targets a zone not protected by the opponent's corresponding parry: Clean strike lands (+2 judge points, opponent takes stamina damage). - If an offensive strike matches the opponent's specific directional parry: Strike is deflected (0 points, attacker loses 5 stamina). - If both combatants strike simultaneously: Both strikes resolve; if lines cross, higher priority/speed weapon scores, or mutual contact awards +1 point to each. - If `Disarm_Attempt` is selected against an attacking opponent, resolution is stochastic: `P(disarm) = f(Skill_Diff, Opponent_Stamina_Deficit)`. If successful, the opponent drops their weapon. R4. [gap-fill] Early Stoppage / Disqualification: - Dropping Weapon: If a combatant drops their weapon twice (`weapon_dropped_count >= 2`), they lose the bout immediately by technical forfeiture (*Plod Awut* KO). - [gap-fill] Boundary Infraction: Stepping outside the ring boundary twice in a single round incurs a 2-point penalty; 3 boundary exits in a round results in round forfeiture. R5. [gap-fill] Bout Scoring and Victory: - At the end of 3 rounds (30 exchanges total), the five judges aggregate points awarded for clean strikes, classical technique, and ring control. - The combatant with the strictly higher aggregate score wins. - If aggregate scores are tied, a sudden-death overtime round of 5 exchanges is contested; if still tied, victory is awarded to the combatant with higher remaining stamina. ## Edge cases - Tie at the end condition: Resolved via 5-exchange sudden-death overtime, followed by remaining stamina tie-breaker. - A player with no legal move: Not applicable; all combat actions (strikes, parries, footwork) are always available while a weapon is retained. - Repetition / cycles: Bounded by the fixed duration of 3 rounds x 10 exchanges = 30 total ticks (plus max 5 ticks in overtime). - Simultaneous claims on the same resource or position: Simultaneous strikes are evaluated via the R3 resolution matrix, allowing mutual scoring or speed-based priority. - Player elimination mid-round; turn order repair: A bout ends immediately upon 2 weapon drops, technical submission, or boundary disqualification; no turn order repair required for 2 agents. - Resource exhaustion: Exchange ticks and rounds are finite and strictly decrement; combatant stamina decreases monotonically with exertion and received strikes. - Termination guarantee: why the game provably ends: Guaranteed by the hard cap of 30 regulation exchange ticks and bounded sudden-death overtime. ## State representation - Persistent state: - `round`: integer in `[1, 3]` - `exchange_in_round`: integer in `[1, 10]` - `scores[2]`: aggregate judge points per combatant - `stamina[2]`: float in `[0.0, 100.0]` - `weapon_drops[2]`: integer in `[0, 2]` - `ring_exits[2]`: integer in `[0, 3]` - `bout_status`: `ongoing | player_1_win | player_2_win | overtime` - Per-turn ephemeral state: - `actions[2]`: simultaneous action choices for the active exchange. - Observable information: Fully observable public state (scores, round, stamina estimates, and weapon status are visible to both agents). ## Action space - `slash_high()`: High slash targeting head/shoulder zone (+2 points if unblocked). - `thrust_mid()`: Linear thrust targeting chest/torso (+2 points if unblocked). - `sweep_low()`: Low sweep targeting lead leg (+2 points if unblocked). - `parry_high()`: Blocks high attacks. - `parry_mid()`: Blocks mid attacks. - `parry_low()`: Blocks low sweeps. - `evasive_footwork()`: Evades all normal strikes; costs 2 stamina; awards 0 strike points. - `disarm_attempt()`: High-risk technique to force a weapon drop. ## Playability notes - Single-player-vs-AI: Highly natural 1v1 tactical fencing duel; AI uses Markov decision processes or minimax with stochastic outcomes to balance aggression, stamina conservation, and directional reads. - Group games (n>4): Not applicable; Krabi-Krabong duels are strictly 1v1. Multi-player events operate as elimination tournament brackets. - Physical-skill games: Weapon weight, kinetic balance, and martial choreography (*Mai Mae*) are represented via directional counter-matrices and judge scoring weights. - What is lost in the adaptation: The resonant rhythm of live *Pi Phat* music accelerating with engagement, authentic blade edge-alignment physics, and the ceremonial beauty of the *Phrom Sit-na* dance. ## Implementation hints - Simple rock-paper-scissors-plus-stamina state machine. - Suggested first milestone: Implement the 3-zone directional strike/parry matrix with deterministic scoring, then layer in stamina depletion, disarms, and sudden-death overtime.

Download as JSON

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

Download JSON
Cite this page

Siamese Weapons Martial Art (Thailand). (n.d.). Games of Countries. https://gamesofcountries.com/games/th-thailand/krabi-krabong

@misc{gamesofcountries-th-thailand-krabi-krabong,
  title = {Siamese Weapons Martial Art (Thailand)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/th-thailand/krabi-krabong}
}