Formal Specification
Horn-Pulling Ritual Contest — Formal Specification
Sri Lanka · festival-ritual · Confidence: high
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: abstractedGap-fills: 3
# Ankeliya — AI-optimized specification
## General idea
Ankeliya is a sacred communal ritual contest where two hereditary factions (Udupila representing the male divine principle and Yatipila representing goddess Pattini) interlock two hardened horns or heavy wooden crooks connected to lever ropes and exert synchronized pulling surges. The contest is a structural stress battle: teams manage fatigue and mechanical leverage until one horn's structural integrity fails and it snaps or dislodges, granting spiritual favor and agricultural blessing to the victor.
## Formal model
- **Abstraction taken:** The continuous physical pulling of hundreds of villagers on coir lever ropes is abstracted into a discrete-tick stamina management and mechanical leverage allocation model. In each tick, both factions choose an exertion strategy (Heave, Steady Tension, Rest/Brace), generating a cumulative tensile stress on the interlocked horn joint. Each horn possesses a hidden structural fatigue threshold sampled from a calibrated distribution.
- **Player/agent count:** 2 teams (Team 0: *Udupila* / Upper Horn, Team 1: *Yatipila* / Lower Horn).
- **Turn model:** Simultaneous discrete rounds (ticks).
## Formal rules
R1. Setup:
- Upper Horn (*Udu-anga*) starts with structural integrity `Integrity_U` sampled from `N(mu_horn, sigma_horn)`.
- Lower Horn (*Yati-anga*) starts with structural integrity `Integrity_Y` sampled from `N(mu_horn, sigma_horn)`.
- Both teams start with Team Stamina `S = S_max` and Rope Tension `T = 0`.
R2. In each simultaneous round `t`, both teams secretly select one of three actions:
- `Heave`: Consumes high stamina (`Delta_S = -15`), applies high force `F = F_base * (S / S_max) * 1.5` to the lever system.
- `Maintain`: Consumes moderate stamina (`Delta_S = -5`), applies steady force `F = F_base * (S / S_max) * 1.0`.
- `Brace_Rest`: Consumes zero stamina and recovers stamina (`Delta_S = +10`, capped at `S_max`), applies low force `F = F_base * 0.3`.
R3. Force and Tension Resolution:
- Effective system pull `F_net = F_Udupila + F_Yatipila`.
- Total rope and lever tension increases: `T(t+1) = alpha * T(t) + beta * F_net`.
R4. Damage Calculation:
- [gap-fill] Tensile stress damage is inflicted on both interlocked horns proportionally to system tension and asymmetric lever angle torque:
- `Damage_U = T(t+1) * Random_Uniform(0.8, 1.2) * Torque_Ratio_U`.
- `Damage_Y = T(t+1) * Random_Uniform(0.8, 1.2) * Torque_Ratio_Y`.
- `Integrity_U = Integrity_U - Damage_U`.
- `Integrity_Y = Integrity_Y - Damage_Y`.
R5. Win / Loss Resolution:
- If `Integrity_U <= 0` and `Integrity_Y > 0`: *Yatipila* wins immediately (Pattini's side victorious).
- If `Integrity_Y <= 0` and `Integrity_U > 0`: *Udupila* wins immediately (Palanga's side victorious).
- [gap-fill] If both horns cross `<= 0` in the exact same tick, the horn with the more negative integrity value breaks first; if identical, *Yatipila* is awarded the tie-break in alignment with ritual tradition.
R6. [gap-fill] Maximum Round Limit: If neither horn fractures within `T_max = 50` rounds, the horn with the lower percentage remaining integrity breaks on the final surge.
## Edge cases
- Tie at the end condition: Resolved deterministically by comparing residual structural health down to floating-point precision, or awarded to *Yatipila* per ritual tradition where Pattini's victory is the culturally favored outcome.
- A player with no legal move: Not applicable — at least one exertion action (`Brace_Rest`) is always legal even when stamina is at 0.
- Repetition / cycles: Bounded strictly by monotonic damage accumulation on horn structural integrity (`Integrity` strictly decreases every round where `T > 0`), guaranteeing no infinite cycles.
- Simultaneous claims on the same resource: Not applicable — actions resolve simultaneously into a shared scalar tension pool.
- Player elimination mid-round: Not applicable — two-team binary contest ending in game termination.
- Resource exhaustion: If a team depletes stamina to 0, their action is forced to `Brace_Rest` until stamina regenerates.
- Termination guarantee: Because `Damage >= min_damage > 0` whenever any team exerts force, `Integrity` monotonically decreases toward 0, guaranteeing termination in finite steps (bounded by `T_max = 50`).
## State representation
- Persistent state:
- `integrity_u` (float): Remaining structural health of the Upper Horn.
- `integrity_y` (float): Remaining structural health of the Lower Horn.
- `stamina_u` (float): Current energy level of Udupila team (0 to 100).
- `stamina_y` (float): Current energy level of Yatipila team (0 to 100).
- `system_tension` (float): Current accumulated rope/lever mechanical tension.
- `round_number` (integer): Current round index `1..50`.
- Per-turn ephemeral state: Action chosen by Udupila, action chosen by Yatipila, instantaneous force values, damage inflicted.
- Observable information: Both teams observe `system_tension`, visual cues of opponent fatigue (observable stamina bracket), and visible creaking/cracking stages of the horns (coarse integrity status: Intact, Strained, Fracturing). Exact internal numerical integrity thresholds are hidden variables.
## Action space
- `select_effort(action_type)`:
- `action_type in {"HEAVE", "MAINTAIN", "BRACE_REST"}`.
- Precondition: `HEAVE` requires `stamina >= 15`; `MAINTAIN` requires `stamina >= 5`.
## Playability notes
- Single-player-vs-AI: Natural as an asymmetric risk/stamina optimization game against an AI captain predicting surge timings and managing fatigue.
- Group games (n>4): Cleanly models massive collective village pulls by letting multiple sub-agents contribute individual stamina pools to the team total.
- Physical-skill games: Physical biomechanical leverage and timber strain are mapped to stamina management and structural fatigue thresholds.
- What is lost in the adaptation: The spiritual fervor, sacred chanting (*an-kavi*), community processions, and fragrant purification rituals of the Pattini shrine.
## Implementation hints
Low complexity state machine. Branching factor is 3 choices per player per simultaneous round (3 × 3 = 9 joint action pairs). Represent state with simple float variables. First milestone: implement simultaneous round tension update, stamina depletion, and fracture trigger loop in 50 lines of logic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Horn-Pulling Ritual Contest (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/ankeliya
@misc{gamesofcountries-lk-sri-lanka-ankeliya,
title = {Horn-Pulling Ritual Contest (Sri Lanka)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/lk-sri-lanka/ankeliya}
}