Skip to main content
Formal Specification

Go and Chase / Catch-and-Relay — Formal Specification

India · chase-tag · Confidence: high

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 1
# Kho-Kho — AI-optimized specification ## General idea Kho-Kho is a high-speed traditional Indian tag and pursuit sport played on a rectangular court featuring a central lane and two end posts. Eight chasing players sit in alternate facing directions along the central dividing line while one active chaser pursues a batch of three defending runners. The active chaser can instantly transfer pursuit momentum to any seated teammate by tapping their back and shouting "Kho!", forcing the newly activated chaser into an explosive sprint in their pre-set facing direction, while adhering to strict directional commitment and central lane crossing rules. ## Formal model - **Abstraction taken:** The 27.0 m × 16.0 m court is discretized into a 2D coordinate grid of size 54×32 cells (0.5 m resolution). Time progresses in discrete ticks Δt=0.2 seconds (5 Hz). The 8 central sitting squares and 2 end posts are modeled with exact geometric coordinate constraints. - **Player/agent count:** 2 teams of 9 agents (Tchase,Tdefend). - **Turn model:** 2 innings per match; each inning consists of two 9-minute turns (2700 ticks per turn), alternating chasing and defending roles. ## Formal rules R1. **Court Architecture & Setup:** - Court dimensions: x∈[−13.5,+13.5], y∈[−8.0,+8.0]. - Central lane along y=0 between posts at x=±12.0. - 8 seating squares S1,…,S8 positioned along y=0 at regular intervals. - Chasing team positions 8 players seated inside S1…S8, with alternating facing vectors: facing(Sk)={(0,+1) (North),if k is odd(0,−1) (South),if k is even - 9th chaser starts as the active chaser Cactive in a free zone. - Defending team partitions its 9 runners into 3 sequential batches of 3 runners each: B1,B2,B3. Batch B1 enters the court at t=0. R2. **Chaser Movement Constraints & Fouls:** - **Central Lane Constraint:** Cactive cannot cross the central dividing line (y=0) directly. To switch between the North (y>0) and South (y<0) halves, Cactive must run completely around one of the two end posts at x=±12.0. Crossing y=0 elsewhere incurs a *Central Lane Foul*. - **Directional Commitment:** Once Cactive takes a step in a direction along the x-axis (e.g. towards Post 1 at x=+12.0), they cannot turn back or reverse towards Post 2 until they touch the post or execute a "Kho" (*Direction Foul*). - Violating directional rules forces an immediate foul penalty (chaser must stop and yield position). R3. **The "Kho" Relay Action:** - Cactive may transfer the chase role to any seated teammate Sk by moving adjacent to Sk from behind, executing `give_kho(k)`. - Upon `give_kho(k)`: - Seated player Sk is instantly activated as the new Cactive. - The newly activated chaser MUST advance immediately into the half they were facing (facing(Sk)). - The previous Cactive sits down in square Sk, adopting the required sitting orientation. R4. **Elimination of Runners:** - An active runner Rj is declared "Out" if: - Touched/tagged by Cactive with an open hand within legal distance (≤1 cell). - Both feet cross completely outside the outer boundary lines. - Failure to enter the court within the prescribed time window upon batch elimination. - When all 3 runners of batch Bm are eliminated, the next batch Bm+1 must enter the court within 5 ticks. - Chasing team scores +1 point per eliminated runner. R5. **Match Resolution:** - A turn expires after 9 minutes (2700 ticks), or when all 9 runners (all 3 batches) are eliminated. - If all 9 runners are eliminated before time expires, the chasing team scores 9 points and B1 re-enters for the remaining time. - Teams swap roles (Tchase↔Tdefend). - The team with the highest aggregate score after 2 full innings wins the match. - [gap-fill] In knockout matches ending in a tie, an extra mini-inning (one 9-minute turn each, with the shortest time to eliminate 1 batch acting as the tiebreaker) is played. ## Edge cases - **Tie at the end condition:** Handled by R5 (extra tiebreaker inning / minimum-time-to-first-batch metric). - **A player with no legal move:** Seated chasers must remain seated until receiving a "Kho"; active chaser always has valid forward motion or `give_kho()` actions. - **Repetition / cycles:** Chaser running endlessly without tagging is strictly bounded by the 9-minute turn clock countdown. - **Simultaneous claims on the same resource or position:** If Cactive is adjacent to multiple runners, executing `tag()` eliminates the nearest runner. - **Player elimination mid-round; turn order repair:** Eliminated runner is removed; when batch size drops from 3 to 0, next batch index increments monotonically (B1→B2→B3). - **Resource exhaustion (pieces, tokens, space, time):** 9 players and 3 batches are fixed; turn clock guarantees temporal exhaustion. - **Termination guarantee: why the game provably ends:** Guaranteed by monotonic tick countdown from 2700 to 0 per turn. ## State representation - **Persistent state:** - Inning index ∈{1,2}; Turn index ∈{1,2}. - Cumulative scores (SteamA,SteamB). - Active batting/chasing team ID. - **Per-tick ephemeral state:** - Turn clock remaining tturn∈[0,2700]. - Seated chasers array: {S1,…,S8}, each storing (occupied_by_id,facing_dir). - Active chaser state: (agent_id,x,y,current_dir,post_reached). - Active batch index m∈{1,2,3}; Runner states {(xj,yj,eliminatedj)} for j∈Bm. - **Observable information:** Fully observable 2D court state. ## Action space - `move_chaser(dx, dy)`: (Active chaser; subject to directional and lane constraints). - `turn_around_post(post_id)`: (Active chaser at x=±12.0; resets directional constraint). - `give_kho(seated_square_id)`: (Active chaser; transfers active pursuit role). - `move_runner(runner_id, dx, dy)`: (Active runners; 2D dodging and boundary navigation). - `tag_runner(target_id)`: (Active chaser; checks collision and executes tag). ## Playability notes - **Single-player-vs-AI:** Excellent tactical pursuit problem. The human controls the chasing team, orchestrating optimal "Kho" triggers to trap elusive AI runners between the seated grid and boundary walls. - **Group games (n>4):** Natural 9v9 structure reduces cleanly to a 2-agent Commander game: Chasing Tactician vs Evasive Navigator. - **Physical-skill games:** Physical sprinting agility and diving tags are discretized into speed vectors and a probabilistic diving tag success resolver. - **What is lost in the adaptation:** The sudden burst of physical acceleration when receiving a hard tap on the back, and the intense vocal rhythm of shouting *"Kho!"*. ## Implementation hints - Represent the central lane as a strict impassable barrier in the pathfinding navmesh, with passable portal zones only at the two post vertices. - Branching factor: Active chaser has 3 directional moves + 8 possible `give_kho()` targets (≈11 actions); 3 active runners have 8 movement choices each (83=512 joint evasive moves). - Obvious representational trap: Allowing an activated chaser to choose their running half; they MUST enter the half they were already facing when seated. - Suggested first milestone: Implement court geometry with the central impassable line and 2 posts; simulate 1 chaser chasing 1 runner with post-turning mechanics before adding the seated chaser relay.

Download as JSON

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

Download JSON
Cite this page

Go and Chase / Catch-and-Relay (India). (n.d.). Games of Countries. https://gamesofcountries.com/games/in-india/kho-kho

@misc{gamesofcountries-in-india-kho-kho,
  title = {Go and Chase / Catch-and-Relay (India)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/in-india/kho-kho}
}