Skip to main content
Formal Specification

Tip-Cat / Wooden Peg and Striking Bat — Formal Specification

India · stick-team · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Gilli-Danda — AI-optimized specification ## General idea Gilli-Danda is an ancient Indian tip-cat street and field sport played with two hand-carved wooden implements: a long striking bat (*danda*) and a short double-tapered wooden peg (*gilli*). The batter levers the gilli into the air from a small base trench, survives a defensive return throw aimed at the resting danda, flips the gilli into the air with an angled tap, and strikes it into the outfield to score points proportional to the measured distance in danda-lengths. ## Formal model - **Abstraction taken:** Continuous aerodynamics, projectile physics, and striking mechanics are replaced by parameterized stochastic outcome samplers conditioned on striker aim, power selection, and fielding positioning. - **Player/agent count:** 2 teams (Tbat,Tfield) with k players each (3≤k≤6), or 2 individual players (k=1). - **Turn model:** Inning-based structure with sequential at-bats per batter until elimination. ## Formal rules R1. **Match Structure & Inning Setup:** - A match comprises 2 innings (or 1 inning per side). - Batting team Tbat orders its k players into a batting lineup (B1,…,Bk). - Active batter Bi takes position at the base trench (*guchhi*). Fielders disperse in the outfield. R2. **Phase 1 (The Flick / Launch):** - Batter Bi chooses launch power P∈[low,medium,high] and launch angle θ. - Launch outcome produces 2D landing coordinate (x1,y1) and air time tair. - **Fly Catch Check:** Defensive team fields the ball; P(fly catch)=f(air time,fielder distance). - If caught on the fly: Bi is "Out" (proceeds to next batter). - If uncaught: gilli lands at (x1,y1), triggering Phase 2. R3. **Phase 2 (The Target Throw at Danda):** - Batter Bi places the *danda* horizontally across the base trench (target area width wdanda). - Nearest fielder at (x1,y1) throws the gilli toward the trench. - **Hit Check:** P(hit danda or trench)=g(distance(x1,y1),fielder_skill). - If hit: Bi is "Out" immediately. - If miss: gilli comes to rest at (x2,y2) near the trench, triggering Phase 3. R4. **Phase 3 (Tip-and-Strike / Tola):** - Batter Bi moves to the gilli's resting position (x2,y2). - Batter executes a tip strike: P(successful aerial flip)=h(strike_style,skill). - Batter is permitted up to 3 flip attempts. If all 3 fail, Bi is "Out". - While the gilli is airborne, batter chooses swing vector (force,angle) to strike it into the outfield. - Struck gilli lands at final position (x3,y3). - If caught on the fly by an outfielder: Bi is "Out". R5. **Phase 4 (Scoring and Measurement):** - If the gilli lands safely uncaught at (x3,y3), the distance from the base trench to (x3,y3) is measured in units of danda-lengths Ldanda: Score=⌊EuclideanDistance((0,0),(x3,y3))Ldanda⌋ - The calculated integer score is added to Tbat's cumulative total. - Batter Bi retains the batting position and repeats from Phase 1. R6. **Inning and Match Resolution:** - When batter Bi is out, the next batter Bi+1 steps up. - When all k batters in Tbat are eliminated, the half-inning ends. - Teams swap roles (Tbat↔Tfield). - The team with the highest aggregate score wins the match. - [gap-fill] In case of a tie after both innings, each team nominates 1 champion batter for a single-round sudden-death strike-off (highest single-hit distance wins). ## Edge cases - **Tie at the end condition:** Handled by R6 (sudden-death single-hit strike-off). - **A player with no legal move:** Not applicable — active batter always has valid launch and swing actions; fielders always have throw actions. - **Repetition / cycles:** Batter's streak of successful hits is bounded by cumulative non-zero hazard probability of elimination per turn (P(out)>0). [gap-fill] An optional maximum limit of 50 consecutive scoring hits per batter caps unbounded turns. - **Simultaneous claims on the same resource or position:** Not applicable — at-bat events resolve sequentially. - **Player elimination mid-round; turn order repair:** Eliminated batter leaves the trench; turn advances to next indexed batter Bi+1 until lineup exhaustion. - **Resource exhaustion (pieces, tokens, space, time):** Discrete k-player lineup and fixed danda unit length. - **Termination guarantee: why the game provably ends:** Inning ends strictly when all k batters are put out; each at-bat cycle has strictly positive hazard probability of termination, guaranteeing almost-sure finite termination. ## State representation - **Persistent state:** - Inning index ∈{1,2}; Active batting team ID. - Lineup index i∈{1,…,k}. - Team score totals (S1,S2). - Batter attributes: (launch_skill,flip_skill,power). - Fielder attributes: (catching_skill,throwing_accuracy). - **Per-at-bat ephemeral state:** - current_phase∈{Phase 1: Launch,Phase 2: Target Throw,Phase 3: Tola Strike,Phase 4: Score}. - Current gilli coordinates (x,y)∈ℝ2. - Failed tip attempts counter cmiss∈{0,1,2,3}. - **Observable information:** Fully observable game state. ## Action space - `launch_gilli(power, angle)`: (Batter, Phase 1). - `defensive_throw(target)`: (Fielder, Phase 2). - `tip_flip()`: (Batter, Phase 3). Attempts to pop the gilli into the air. - `aerial_strike(power, direction)`: (Batter, Phase 3). Hits the airborne gilli into the outfield. ## Playability notes - **Single-player-vs-AI:** Highly engaging as an arcade/tactical batting game. The player selects risk/reward profiles on swing types and power while AI fielders adjust positioning. - **Group games (n>4):** 3v3 to 6v6 team structures reduce naturally to 1v1 (Active Batter vs Fielding Captain commanding outfield placement). - **Physical-skill games:** Physical hand-eye coordination (flipping the peg and hitting it mid-air) is abstracted into a dual-stage probabilistic resolver P(flip)×P(solid contact|flip). - **What is lost in the adaptation:** The sharp acoustic *clack* of wood striking wood and the visceral thrill of fielding a spinning peg with bare hands. ## Implementation hints - Model outfield as a 2D continuous coordinate plane with radial zones representing distance brackets in danda-lengths. - Branching factor: Small and discrete: 3 launch types ×3 tip styles ×5 swing angles ≈45 combinations per at-bat cycle. - Obvious representational trap: Confusing Phase 1 (lever launch) with Phase 3 (tip flip); they are physically distinct striking mechanics with different failure conditions. - Suggested first milestone: Implement the 4-phase state machine for a single batter with uniform probability stubs; verify distance calculation and out transitions.

Download as JSON

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

Download JSON
Cite this page

Gilli-Danda (India). (n.d.). Games of Countries. https://gamesofcountries.com/games/in-india/gilli-danda

@misc{gamesofcountries-in-india-gilli-danda,
  title = {Gilli-Danda (India)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/in-india/gilli-danda}
}