Skip to main content
Formal Specification

Boundary Tag / Parrot Tag — Formal Specification

Sri Lanka · chase-tag · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 3
# Thachchi Keliya — AI-optimized specification ## General idea Thachchi Keliya (Boundary Tag / Kiliththattu / Parrot Tag) is an athletic Sri Lankan territory-penetration and boundary-tagging sport. One team defends a grid of rectangular compartments: five defenders are restricted to patrolling their respective transverse horizontal lines, while a roving captain (*Thachchi* / *Kili*) patrols the central longitudinal spine line. The raiding team attempts to maneuver runners through every compartment to the rear safe zone and return across all lines to base (*pazham* / scoring a fruit) without being tagged. ## Formal model - **Abstraction taken:** The 15 × 8 meter outdoor court is discretized into a 2D grid of 5 transverse compartments, bisected by a central spine line at `x = 1` (creating a Left Box `x = 0` and Right Box `x = 2` for each row `y in {0..4}`). Line defenders `D_0..D_4` move strictly along horizontal line coordinates `y = 0..4`; the roving captain `D_Kili` moves strictly along vertical spine `x = 1`. Raiders move freely through boxes `(x, y)` and across lines. - **Player/agent count:** 2 teams of 6 agents (Team 0: Raiders, Team 1: Defenders). - **Turn model:** Synchronous discrete movement ticks (up to `T_max = 60` ticks per raid). ## Formal rules R1. Setup: - Court consists of 5 row compartments `y in {0..4}` and 2 lateral columns (`x = 0`: Left, `x = 2`: Right), separated by central spine `x = 1`. - Entry Baseline at `y = -1`, Rear Safety Zone at `y = 5`. - Defenders assigned: - Line Defenders `D_0, D_1, D_2, D_3, D_4` assigned to lines `y = 0, 1, 2, 3, 4`. - Roving Captain `D_Kili` assigned to vertical line `x = 1`, `y in [0..4]`. - Raiders `R_1..R_6` start at Entry Baseline `y = -1`. - Match Score `Points_0 = 0`, `Points_1 = 0`. Raid timer `T = 60` ticks. R2. Movement Rules per Tick: - In each tick `t`, all agents choose simultaneous moves: - Line Defender `D_y`: Moves along their fixed line `x in [0..2]` at speed `1` cell/tick. Cannot change `y`. - Roving Captain `D_Kili`: Moves along the central spine `x = 1`, `y in [0..4]` at speed `2` cells/tick. Cannot enter `x = 0` or `x = 2`. - Raiders `R_i`: Move 1 cell in cardinal directions `{(0, 0), (+-1, 0), (0, +-1)}`. R3. Tagging Mechanics & Evasion: - Line Tag: When a raider attempts to cross line `y` from compartment `y-1` to `y` (or reverse), if Line Defender `D_y` is at the same `x` position or adjacent: - [gap-fill] Tag probability is `P(Tag) = max(0.20, min(0.95, 0.70 + (Defender_Speed - Raider_Agility) * 0.2))`. - Spine Tag: If a raider is in an adjacent box `(x=0 or x=2, y)` and `D_Kili` is at `(x=1, y)`: - `D_Kili` may execute a Reach Tag with `P(Tag) = 0.60`. R4. Dismissal & Instant Role Swap: - If any raider is successfully tagged (or steps outside boundary limits): - The entire raiding turn fails immediately (`Result = RAID_FAILED`). - Teams immediately swap roles: Raiders become Defenders, Defenders become Raiders. R5. Scoring a Fruit (*Pazham*): - A raider who navigates `y = -1 -> y = 5` (Outward journey) and returns `y = 5 -> y = -1` (Return journey) scores 1 Point (*Pazham*) for their team. - [gap-fill] Scoring a point allows the raiding team to continue their raid turn with an additional 60 ticks. R6. Match Termination: - [gap-fill] Match terminates after `N = 10` total half-innings (5 raids per side). The team with the higher score wins. ## Edge cases - Tie at the end condition: Equal points after 10 half-innings result in a 2-inning sudden death overtime. - A player with no legal move: Not applicable — stationary wait `(0, 0)` is always legal. - Repetition / cycles: Bounded strictly by the 60-tick countdown timer per raid. - Simultaneous claims on the same resource: Multiple raiders may occupy the same compartment box simultaneously. - Player elimination mid-round: In standard rules, a single tag dismisses the entire raiding squad, triggering immediate inning turnover. - Resource exhaustion: None — court compartments and line boundaries remain fixed. - Termination guarantee: Countdown timer decrements monotonically each tick, guaranteeing raid termination in <= 60 ticks. ## State representation - Persistent state: - `team_scores` (mapping `{Team_0: int, Team_1: int}`). - `current_inning` (integer `1..10`), `active_raiding_team` (0 or 1). - Per-turn ephemeral state: - `time_remaining` (integer `0..60`). - `raider_positions` (mapping of 6 raider IDs to `(x, y)` and `direction_status: OUTWARD / RETURNING`). - `defender_positions` (mapping of 5 line defenders to `x` coordinate and Kili to `y` coordinate). - Observable information: Fully observable — all player locations on the grid, raider journey progress, remaining time, and scores are public. ## Action space - `raider_move(dx, dy)`: - Cardinal movement `(dx, dy) in {(0,0), (+-1, 0), (0, +-1)}`. - `line_defender_move(dx)`: - Transverse movement `dx in {-1, 0, +1}` along line `y`. - `kili_move(dy)`: - Longitudinal movement `dy in {-2, -1, 0, +1, +2}` along spine `x = 1`. ## Playability notes - Single-player-vs-AI: Exceptional team coordination and spatial pathfinding game. Controlling raiders involves coordinating feints on the left wing to draw the line defender and Kili, opening a gap for the scoring runner on the right wing. - Group games (n>4): Cleanly reducible to 2 macro-agents (Raider Coach vs. Defender Coach controlling 6 units each). - Physical-skill games: Sprinting agility and peripheral evasion are mapped to discrete grid movement and stochastic tag probability checks. - What is lost in the adaptation: The explosive physical acceleration on grass and the tense vocal shouts of the roving *Kili* directing line defenders. ## Implementation hints Medium complexity 2D grid state machine with multi-agent pathfinding. Model the grid as a bipartite graph of boxes and intersecting line segments. Milestone 1: implement grid coordinate system, line-defender movement clamps, spine-defender traversal, raider journey state machine, and tag resolution in under 200 lines.

Download as JSON

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

Download JSON
Cite this page

Boundary Tag / Parrot Tag (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/thachchi-keliya

@misc{gamesofcountries-lk-sri-lanka-thachchi-keliya,
  title = {Boundary Tag / Parrot Tag (Sri Lanka)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/lk-sri-lanka/thachchi-keliya}
}