Skip to main content
Formal Specification

Stick-Striking Rhythmic Combat Game — Formal Specification

Sri Lanka · dexterity-small · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Lee Keliya — AI-optimized specification ## General idea Lee Keliya (Stick-Striking Rhythmic Combat Game / Polladi) is a traditional Sri Lankan dexterity, rhythm, and martial fencing game. Armed with pairs of hardwood batons, players perform synchronized strikes, cross-blocks, crouching parries, and circular weaving passes to the accelerating tempo of Kandyan drums (*Berapada*). The challenge centers on sustaining unbroken stick-to-stick impact precision as musical tempo accelerates to maximum velocity without missing beats or dropping batons. ## Formal model - **Abstraction taken:** Musical rhythm and hardwood stick fencing are modeled as a discrete rhythmic beat sequence `Beat_1..Beat_N`. At each drum accent, both agents in a pair must submit matching complementary strike/parry vectors within an accelerating timing window `W(t)`. - **Player/agent count:** 2 paired agents (or `2k` agents in a circular troupe). - **Turn model:** Synchronous discrete beat ticks (subdivided into 3 performance tiers). ## Formal rules R1. Setup: - Match consists of 3 performance tiers of increasing complexity: - Tier 1 (Basic Clashing): 16 beats. Base tempo = 60 BPM. - Tier 2 (Rotational Weaving): 24 beats. Base tempo = 90 BPM. - Tier 3 (Combat Agility & High-Low Acrobatics): 32 beats. Base tempo = 120+ BPM. - Initial performance score `Score = 0`, Fault counter `Faults = 0`. R2. Beat Execution & Pattern Matching: - On each beat `t`, the musical engine issues a prescribed target clash vector `C_target` from the catalog: - `RIGHT_CROSS`: Right stick to partner's right stick. - `LEFT_CROSS`: Left stick to partner's left stick. - `DOUBLE_FRONT`: Both sticks clash in front simultaneously. - `LOW_CROUCH_PARRY`: One player ducks low, parrying an overhead strike. - `LEAP_STRIKE`: Jumping overhead cross-impact. - Both agents submit an action `A_1` and `A_2`. R3. Timing Precision & Fault Resolution: - [gap-fill] Hit success probability under current tempo is: `P(Clash_Success) = (1.0 if A_1 matches A_2 == C_target else 0.0) * max(0.20, 1.0 - (Tempo - 60) / 180)`. - If both agents match `C_target` and pass the timing check: - Combo counter increments: `Combo += 1`. - Score increases: `Score += Base_Points * (1 + Combo * 0.1)`. - If action mismatches or timing check fails: - `Combo = 0`, `Faults += 1`. R4. Fault Elimination: - [gap-fill] If cumulative `Faults >= 3`, the performance terminates prematurely due to stick drop or choreography break. R5. Tournament Victory: - The pair completing all 3 tiers with the highest total aggregate rhythm score and lowest faults wins the competition. ## Edge cases - Tie at the end condition: Resolved by higher max combo streak, or declared a shared artistic victory. - A player with no legal move: Not applicable — all stick clash actions in the catalog are valid choices on every beat. - Repetition / cycles: Bounded strictly by the finite 72-beat script across all 3 tiers. - Simultaneous claims on the same resource: Actions must be synchronized and complementary; mismatched claims trigger a rhythm fault. - Player elimination mid-round: If a pair incurs 3 faults, the routine ends immediately and current score is locked. - Resource exhaustion: None — sticks are durable and non-depletable. - Termination guarantee: The fixed total beat sequence (`N = 72`) strictly progresses to conclusion, guaranteeing finite termination. ## State representation - Persistent state: - `total_score` (float): Cumulative rhythmic score. - `faults_count` (integer `0..3`). - `max_combo` (integer). - `current_tier` (integer `1..3`). - Per-turn ephemeral state: - `current_beat_index` (integer `1..72`). - `current_bpm` (float). - `target_clash_pattern` (string identifier). - `submitted_actions` (tuple of agent actions `(A_1, A_2)`). - Observable information: Fully observable — drum rhythm cues, target patterns, current BPM, and fault counts are public. ## Action space - `strike_action(pattern_id, timing_offset)`: - `pattern_id in {"RIGHT_CROSS", "LEFT_CROSS", "DOUBLE_FRONT", "LOW_PARRY", "HIGH_STRIKE", "LEAP_STRIKE"}`. - `timing_offset in [-0.10, +0.10]` seconds relative to the drum beat downbeat. ## Playability notes - Single-player-vs-AI: Excellent cooperative rhythm game (similar to rhythm-action engines like Guitar Hero or Taiko) where 1 human player and 1 AI partner must synchronize movements. - Group games (n>4): Extends naturally to a full 8-player circle troupe weaving in alternating directions. - Physical-skill games: Hardwood baton dexterity and martial dance agility are mapped to discrete pattern-matching and timing window tolerances. - What is lost in the adaptation: The resonant ringing acoustic crack of seasoned ironwood batons and the visual spectacle of spinning tassels in the Perahera torchlight. ## Implementation hints Low complexity rhythm state machine. Easily implemented as a sequence-matching loop over an array of timestamped beats. Milestone 1: implement 3-tier beat sequence, simultaneous pattern checker, combo multiplier scoring, and 3-fault termination in under 100 lines.

Download as JSON

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

Download JSON
Cite this page

Stick-Striking Rhythmic Combat Game (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/lee-keliya

@misc{gamesofcountries-lk-sri-lanka-lee-keliya,
  title = {Stick-Striking Rhythmic Combat Game (Sri Lanka)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/lk-sri-lanka/lee-keliya}
}