Skip to main content
Formal Specification

Tip-cat and Bat — Formal Specification

Bosnia & Herzegovina · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Klis i pala — AI-optimized specification ## General idea An asymmetric bat-and-peg outdoor contest where a batting agent launches a wooden peg (klis) from a home trench into a continuous 1D/2D field. Fielding agents attempt an aerial interception or an accurate return throw at the home target; if the defense fails, the batter executes up to three tip-strikes downfield to maximize distance, scoring points proportional to total displacement measured in bat lengths. ## Formal model - **Abstraction taken:** Continuous physical projectile trajectory and aerodynamic bounce are discretized into a 1D distance axis x≥0 with stochastic outcome models parameterized by agent attributes: P(catch), P(target hit on return), and Dstrike∼𝒩(μ,σ2). - **Player/agent count:** 2 teams, N agents per team (N∈[1,6]). - **Turn model:** Sequential phase-driven turns per batter, with role swaps upon side elimination. ## Formal rules R1. **Setup:** Field distance x=0 (trench/home base). Target match score W=100. Team score totals Sbat=0,Sfield=0. Batting lineup is ordered 1…N. Active batter index b=1. R2. **Phase 1 — The Initial Launch:** Active batter executes `initial_launch()`. The peg travels distance x1∼DistLaunch(skillbat). - R2.1. Fielding team attempts aerial catch: P(catch)=f(x1,skillfield). If catch succeeds, active batter is OUT, and [gap-fill] roles immediately swap if full side out, or next batter steps up. - R2.2. If uncaught, fielder at position x1 executes `return_throw()`. Probability of striking the home base pala is P(hit)=g(x1,skillfield). - R2.3. If return throw hits base target, batter is OUT; batter advances b←b+1; if b>N, batting/fielding roles swap. R3. **Phase 2 — Tip-Strikes:** If return throw misses, batter advances to position x1 and executes up to K=3 successive tip-strikes (`tip_strike(k)` for k=1,2,3): - Each tip-strike adds displacement Δxk∼DistTip(skillbat). - Cumulative distance becomes Xfinal=x1+∑k=13Δxk. R4. **Phase 3 — Scoring:** Points earned for the turn: Points=⌊Xfinal/Lpala⌋, where Lpala is the standard unit length. Points are added to Sbat. R5. **Role swap:** When all N batters in a team are declared OUT, batting and fielding roles exchange completely, and team scores persist. R6. **Win condition:** The first team whose total score reaches or exceeds W upon completion of a full half-inning (or immediate walk-off) wins the game. ## Edge cases - **Tie at the end condition:** [gap-fill] If both teams reach W after an equal number of full batting innings with equal scores, one extra half-inning per team is played as a tiebreaker until the tie is broken. - **A player with no legal move:** Not applicable; at every phase, the active agent has exactly one mandatory action (`initial_launch`, `catch_attempt`, `return_throw`, or `tip_strike`). - **Repetition / cycles:** An inning cannot cycle indefinitely because each batter either scores points or incurs an OUT on bounded stochastic trials. Total outs per side are strictly capped at N. - **Simultaneous claims on the same resource:** Not applicable; actions occur in strict sequential dependency (launch → defense catch/throw → tip-strike). - **Player elimination mid-round / turn order repair:** When a batter is OUT, the next batter in the fixed permutation 1…N takes the turn. If the final batter N is OUT, turn resets to batter 1 of the opposing team. - **Resource exhaustion:** Not applicable; physical equipment (klis and pala) is invariant and reused indefinitely. - **Termination guarantee:** Point totals strictly increase monotonically (Sbat≥0) each scoring turn, and each half-inning is bounded by N outs, guaranteeing the match reaches score W in finite innings. ## State representation - **Persistent state:** `score_team_A: int`, `score_team_B: int`, `batting_team: TeamID`, `active_batter_index: int`, `outs_count: int`. - **Per-turn ephemeral state:** `peg_position: float`, `phase: Enum{LAUNCH, RETURN_DEFENSE, TIP_STRIKES, SCORING}`, `strikes_remaining: int`. - **Observable information:** Fully observable state by all agents. ## Action space - `initial_launch()`: Batter initiates launch from x=0. - `catch_attempt()`: Fielder attempts mid-air interception. - `return_throw()`: Fielder throws from landing position toward x=0. - `tip_strike()`: Batter strikes grounded peg into the outfield (up to 3 times). ## Playability notes - **Single-player-vs-AI:** Natural as a duel (1v1) where the human agent controls the batter/thrower trajectory and an AI simulates field defense. - **Group reduction:** Multi-player teams (4v4) collapse cleanly to 1 batter agent vs 1 fielding coordinator agent without altering the core gameplay. - **Physical-skill games:** Physical bat striking is parameterized by P(hit) and distance distribution functions dependent on an agent's `accuracy` and `power` traits. - **What is lost:** The nuanced kinetic motor skill of tapping the peg's angled tip at precisely the right angle to create vertical pop before swinging is abstracted into random distributions. ## Implementation hints - Moderate complexity: Implement a modular stochastic physics proxy for the three discrete ballistics events (launch, throw-back, tip-strike). - Obvious trap: Forgetting to track cumulative outs before triggering the role swap. - Suggested first milestone: Build a 1v1 turn simulator with deterministic distances to validate scoring thresholds and role transition logic.

Download as JSON

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

Download JSON
Cite this page

Tip-cat and Bat (Bosnia & Herzegovina). (n.d.). Games of Countries. https://gamesofcountries.com/games/ba-bosnia-herzegovina/klis-i-pala

@misc{gamesofcountries-ba-bosnia-herzegovina-klis-i-pala,
  title = {Tip-cat and Bat (Bosnia & Herzegovina)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ba-bosnia-herzegovina/klis-i-pala}
}