Formal Specification
Tip-cat and Bat — Formal Specification
Bosnia & Herzegovina · stick-team · Confidence: low
← Back to game pageImplementation 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 with stochastic outcome models parameterized by agent attributes: , , and .
- **Player/agent count:** 2 teams, agents per team ().
- **Turn model:** Sequential phase-driven turns per batter, with role swaps upon side elimination.
## Formal rules
R1. **Setup:** Field distance (trench/home base). Target match score . Team score totals . Batting lineup is ordered . Active batter index .
R2. **Phase 1 — The Initial Launch:** Active batter executes `initial_launch()`. The peg travels distance .
- R2.1. Fielding team attempts aerial catch: . 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 executes `return_throw()`. Probability of striking the home base pala is .
- R2.3. If return throw hits base target, batter is OUT; batter advances ; if , batting/fielding roles swap.
R3. **Phase 2 — Tip-Strikes:** If return throw misses, batter advances to position and executes up to successive tip-strikes (`tip_strike(k)` for ):
- Each tip-strike adds displacement .
- Cumulative distance becomes .
R4. **Phase 3 — Scoring:** Points earned for the turn: , where is the standard unit length. Points are added to .
R5. **Role swap:** When all 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 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 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 .
- **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 takes the turn. If the final batter 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 () each scoring turn, and each half-inning is bounded by outs, guaranteeing the match reaches score 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 .
- `catch_attempt()`: Fielder attempts mid-air interception.
- `return_throw()`: Fielder throws from landing position toward .
- `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 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 JSONCite 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}
}