Formal Specification
Chakgudu (Sri Lankan Breath-Holding Tag) — Formal Specification
Sri Lanka · chase-tag · Confidence: high
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Chakgudu — AI-optimized specification
## General idea
Chakgudu (Gudu Paneema / Sadugudu) is a Sri Lankan traditional breath-holding contact tag sport. Two teams occupy opposing halves of a rectangular court. On each raid turn, a solo offensive raider enters the defending court while maintaining an unbroken verbal cant, attempting to tag defenders and escape back across the central dividing line before being tackled, grounded, or running out of breath. Eliminated defenders are revived sequentially as their team scores points.
## Formal model
- **Abstraction taken:** Continuous physical sprint, tag, and wrestling on turf is discretized onto a 2D grid court (e.g. 12 × 8 cells, divided at `x = 6` by the midline `M`). The continuous vocal cant on a single breath is modeled as a discrete raid stamina/timer `B_raid = 30` ticks. Each tick, the raider and all active defenders move up to 1 cell (or execute actions). Tagging occurs on cell adjacency, and grappling is resolved via a stochastic stamina/strength contest.
- **Player/agent count:** 2 teams of 7 agents (Team A and Team B).
- **Turn model:** Alternating raids. Within a raid, execution proceeds in simultaneous synchronized discrete ticks (up to 30 ticks).
## Formal rules
R1. Setup:
- Pitch is a grid of size `12 (length) x 8 (width)`. Midline `M` is located between column 5 and column 6.
- Team A defends `x in [0..5]`; Team B defends `x in [6..11]`.
- Both teams start with 7 active players on court, 0 points, and an empty elimination queue.
R2. Raid Initiation:
- Offense selects 1 active player as Raider.
- Raider crosses midline `M` into opponent territory with initial breath timer `B = 30` ticks and empty tagged list `Tagged = []`.
R3. Tick Cycle (Simultaneous Movement):
- In each tick `t`:
- Raider moves to an adjacent cell `(dx, dy) in {(0,0), (+-1, 0), (0, +-1)}` or initiates a tag.
- Active defenders choose simultaneous adjacent moves or group-tackle actions.
- Raider breath decrements: `B = B - 1`.
R4. Tagging & Grappling:
- Tagging: If Raider enters an adjacent cell to an untagged defender `d` and executes `TAG`, `d` is marked as tagged (`Tagged.append(d)`).
- Defensive Tackle: If one or more defenders enter adjacent cells to the Raider after a tag, they may execute `HOLD/TACKLE`.
- [gap-fill] Grapple Resolution: Each tick a grapple is active, a contest is resolved:
- `P(Raider Breakaway) = Raider_Agility / (Raider_Agility + sum(Defender_Strength))`.
- If the grapple holds for 3 consecutive ticks, the Raider is immobilized.
R5. Raid Resolution & Scoring:
- *Successful Return:* If Raider reaches any cell on midline `M` with `B > 0` and is not immobilized:
- Offense scores `|Tagged|` points.
- All players in `Tagged` are eliminated and moved to the defender's bench queue.
- Offense revives `min(|Tagged|, |Eliminated_Offense|)` players from their own bench in first-in, first-out order.
- *Raider Captured / Breath Exhausted:* If Raider is immobilized or `B <= 0` before reaching `M`:
- Defense scores 1 point.
- Raider is eliminated to the offense bench.
- Defense revives 1 eliminated player from their bench queue (if any).
R6. All-Out Bonus:
- If all 7 players of a team are eliminated, the opposing team receives an extra `All-Out` bonus of 2 points, and all 7 eliminated players are immediately revived onto the court.
R7. Match Termination:
- [gap-fill] A full match consists of `N = 40` total raids (20 raids per side). The team with the highest point total wins. If equal, the match is declared a draw.
## Edge cases
- Tie at the end condition: Equal points at 40 raids result in a declared draw or a 5-raid sudden death overtime.
- A player with no legal move: If a player is cornered or pinned, stationary action `(0,0)` is always valid.
- Repetition / cycles: Bounded by the strict per-raid breath countdown `B = 30` and the fixed match raid limit (`N = 40`), preventing infinite stalling.
- Simultaneous claims on the same resource: If multiple defenders attempt to occupy the same cell, collision resolution keeps the defender with higher priority or deflects to adjacent cells.
- Player elimination mid-round: Eliminated agents become inactive on court and join their team's FIFO revival queue; when revived, they spawn at the back boundary line of their court half.
- Resource exhaustion: If a team has 0 active players on court, an All-Out is triggered immediately per R6.
- Termination guarantee: Every raid terminates in at most 30 ticks; the match terminates strictly after 40 raids.
## State representation
- Persistent state:
- `score_a`, `score_b` (integers).
- `active_players_a`, `active_players_b` (lists of player IDs currently on court).
- `bench_queue_a`, `bench_queue_b` (FIFO queues of eliminated player IDs).
- `current_raid_index` (`1..40`), `raiding_team` (A or B).
- Per-turn ephemeral state:
- `grid_positions` (mapping of player IDs to `(x, y)` coordinates).
- `raider_id`, `breath_timer` (`0..30`), `tagged_defenders` (list of IDs), `grapple_hold_count` (integer).
- Observable information: Fully observable — all player positions, breath counter, tagged states, and bench queues are visible to both agents.
## Action space
- `move(dx, dy)`: Move 1 cell in cardinal directions or stay.
- `tag(defender_id)`: Raider attempts to tag an adjacent defending agent. Precondition: `dist(raider, defender) <= 1`.
- `tackle(raider_id)`: Defender attempts to grapple the raider. Precondition: `dist(defender, raider) <= 1` and at least one defender was tagged or initiated contact.
## Playability notes
- Single-player-vs-AI: Highly playable as an agent control problem — controlling the raider navigating through defender zoning lines or coordinating defender team encirclement.
- Group games (n>4): Cleanly reducible to 2 macro-agents (Team Offense Coach vs. Team Defense Coach controlling 7 sub-units) or 1v1 mini-court Kabaddi (1 raider vs. 2 defenders).
- Physical-skill games: Lung capacity, agility, and wrestling grip are modeled via discrete breath ticks, movement speed, and stochastic grapple formulas.
- What is lost in the adaptation: The aerobic breath tension of real-life vocal canting (*"Chak-gudu-gudu..."*) and the physical impact of grass tackles.
## Implementation hints
Medium complexity due to multi-agent grid pathfinding and simultaneous resolution. Recommended architecture: grid-based step engine with collision detection and discrete combat resolution. Milestone 1: implement raid timer countdown, raider grid movement, midline cross detection, and tag/elimination accounting in under 200 lines.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Chakgudu (Sri Lankan Breath-Holding Tag) (Sri Lanka). (n.d.). Games of Countries. https://gamesofcountries.com/games/lk-sri-lanka/chakgudu
@misc{gamesofcountries-lk-sri-lanka-chakgudu,
title = {Chakgudu (Sri Lankan Breath-Holding Tag) (Sri Lanka)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/lk-sri-lanka/chakgudu}
}