Skip to main content
Formal Specification

Elle (Sri Lankan Bat-and-Ball) — Formal Specification

Sri Lanka · ball-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Elle — AI-optimized specification ## General idea Elle is Sri Lanka's indigenous national bat-and-ball sport. Sixteen batters take sequential turns striking an underhand delivered ball into a semi-circular outfield with a cured bamboo bat. Upon striking a fair ball, the batter runs around four corner bases (*kad-im*) in sequence to score runs, while sixteen outfielders attempt to catch the fly ball for an instant out or field the grounder and tag/strike runners with the ball before they safely touch a base post. ## Formal model - **Abstraction taken:** The 70-meter continuous grass outfield is discretized into a polar zone map (6 radial sectors: Left Shallow/Deep, Center Shallow/Deep, Right Shallow/Deep). Bat contact produces a flight trajectory, landing zone, and hang-time. Base running is modeled across 4 discrete base nodes `[Home, Base1, Base2, Base3, Home]`. - **Player/agent count:** 2 teams of 16 players (Batting Team and Fielding Team). - **Turn model:** Sequential batters within an inning. Each pitch-hit event triggers a simultaneous base-running and fielding resolution phase. ## Formal rules R1. Setup: - Match consists of 1 inning per team (or 2 agreed innings). - Batting order is fixed with 16 distinct batters `B_1..B_16`. - Inning terminates when 16 outs are recorded (or all 16 batters have completed their turn in single-pass variant). - Score `Runs = 0`, `Outs = 0`. R2. Pitching & Batting: - Pitcher delivers an underhand ball. - Batter has up to 3 delivery attempts. - Batter chooses swing power and target angle. - [gap-fill] Contact outcome is sampled from: - `Fair Hit`: Ball flies to sector `(Sector, Depth)` with hang-time `t_flight` and ground roll time `t_roll`. - `Foul / Miss`: Strike recorded. 3 strikes without a fair hit = Strikeout (1 Out). R3. Fielding & Dismissals: - Catch Out: If the closest fielder in the target sector has catch probability `P(Catch) = f(Fielder_Speed, Distance, t_flight)` and succeeds, the batter is caught out immediately (`Outs += 1`). - Ground Fielding: If the ball lands, fielders recover the ball in time `t_retrieve = t_flight + t_run_to_ball + t_gather`. R4. Base Running & Tag Outs: - Upon a fair hit, the batter becomes a runner starting at Home Base. - Any existing runners stationed on bases `Base1, Base2, Base3` may choose to advance or hold. - [gap-fill] Base Occupancy: Up to 2 runners may occupy the same base post simultaneously without penalty in traditional village rules. - Runner transit time between consecutive bases is `t_base = Distance / Runner_Speed`. - If a fielder throws the ball to tag a runner or hits the runner between bases before `t_arrival <= t_tag_throw`, the runner is Tagged Out (`Outs += 1`). R5. Scoring: - A runner who completes the full circuit `Home -> Base1 -> Base2 -> Base3 -> Home` without being tagged out scores exactly 1 Run (`Runs += 1`). - *Maha Elle (Home Run):* If a batter clears the deep boundary or circles all 4 bases on their own hit, 1 Run is scored immediately. R6. Inning Switch & Win Condition: - When `Outs == 16` (or batting roster is exhausted), teams switch roles. - After both teams have batted, the team with the higher aggregate Run count wins. ## Edge cases - Tie at the end condition: Equal runs after complete innings result in a 1-inning tie-breaker or declared draw. - A player with no legal move: Not applicable — batters must attempt a swing or take pitches within the 3-pitch limit. - Repetition / cycles: Bounded strictly by the 16-out ceiling per inning, preventing infinite play. - Simultaneous claims on the same resource: Multiple runners arriving at a base post are permitted per R4; tag applies to the unanchored runner if crowded beyond limit. - Player elimination mid-round: Dismissed runners leave the field; active runners stationed on subsequent bases remain safe and active. - Resource exhaustion: When the 16th out occurs, all runners remaining on base are retired with no further runs counted. - Termination guarantee: Every batting turn produces either a run, an out, or a strikeout, monotonically advancing the out counter to 16. ## State representation - Persistent state: - `runs_team_a`, `runs_team_b` (integers). - `current_inning` (1 or 2), `active_batting_team` (A or B). - `outs_count` (integer `0..16`). - `batting_lineup_index` (integer `1..16`). - Per-turn ephemeral state: - `base_runners` (dictionary mapping active runner IDs to base positions `[0, 1, 2, 3]`). - `pitch_count` (`1..3`). - `ball_position` (coordinates / sector of live ball), `ball_carrier_id` (fielder holding ball). - Observable information: Fully observable — all player positions, runner locations, base occupancy, score, and out count are public. ## Action space - `batter_swing(power, direction_angle)`: - Batter selects swing intensity (`LOW, MEDIUM, HIGH`) and targeted sector direction. - `runner_advance(runner_id, target_base)`: - Decision for a runner on base to hold or sprint to next base. - `fielder_throw(target_base_or_runner)`: - Fielder holding the ball chooses which base post to throw to or targets a running player for a tag. ## Playability notes - Single-player-vs-AI: Highly engaging as a team tactical manager (calling swing types, send/hold baserunning decisions, and defensive cutoff throws) vs. AI. - Group games (n>4): Reduced to 2 macro-coaches controlling 16-player rosters without losing strategic depth. - Physical-skill games: Bamboo striking power and throwing accuracy are parameterized into trajectory physics and catch/throw probability checks. - What is lost in the adaptation: The explosive festival atmosphere, rural *papare* brass bands, and energetic community sideline cheering. ## Implementation hints Medium complexity state engine similar to classic baseball/rounders simulations. Use discrete sector zones for outfield ball placement and a graph of 4 nodes for the basepaths. Milestone 1: implement 3-pitch batting loop, fair hit trajectory sampler, and single-runner base advancement in under 200 lines.

Download as JSON

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

Download JSON
Cite this page

Elle (Sri Lankan Bat-and-Ball) (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/elle

@misc{gamesofcountries-lk-sri-lanka-elle,
  title = {Elle (Sri Lankan Bat-and-Ball) (Sri Lanka)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/lk-sri-lanka/elle}
}