Formal Specification
Tip-cat and Bat — Formal Specification
Serbia · dexterity-throw · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Klis i maška — AI-optimized specification
## General idea
A turn-based asymmetric batting and fielding game where a batter launches a double-tapered wooden peg (*klis*) with a bat (*maška*), fielders attempt an aerial catch or return-throw to retire the batter, and surviving batters execute tactical tip-strikes to accumulate distance points measured in discrete bat lengths. It abstracts the physical flight dynamics into discrete launch vectors, catch probabilities, and distance calculations.
## Formal model
- **Abstraction taken:** The 3D ballistics of the wooden peg and human reaction times are replaced by a 1D/2D continuous distance model with parameterized skill resolvers for launch distance, fielder catch probability `P_catch`, return-throw accuracy `P_hit_base`, and tip-strike multiplier `P_pepa`.
- **Player/agent count:** 2 opposing sides (Agent A = Batter, Agent B = Fielder / Fielders).
- **Turn model:** Sequential phase execution per batting attempt: Launch Phase → Fielding Phase → Tip-Strike Phase (if batter safe) → Distance Scoring → Role Transition.
## Formal rules
R1. Setup: State initializes with `score_A = 0`, `score_B = 0`, `target_score = 100`, `active_batter = A`, `active_fielder = B`. Base location is set at coordinate `x = 0`.
R2. Launch Phase: The active batter selects a launch power parameter `u in [0, 1]`. The simulator samples launch distance `d_0 = f_launch(u, skill_batter)`.
R3. Fielding Phase:
- Fielder catch check: `P_catch = f_catch(d_0, skill_fielder)`. If caught, batter is retired immediately with 0 points scored; roles swap (`active_batter = B`).
- Ground return check: If not caught, fielder throws klis toward `x = 0`. Return distance from base `d_ret` is sampled. If `d_ret <= 1.0` bat length, batter is retired with 0 points; roles swap.
R4. Tip-Strike Phase: If batter remains safe, batter may execute up to 3 tip-strikes. On each strike `i in {1, 2, 3}`, batter chooses strike intensity. [gap-fill] A failed tip-strike (airborne miss) yields 0 additional distance and consumes 1 of the 3 attempts without retiring the batter. Total cumulative distance is updated: `d_final = d_0 + delta_d_1 + delta_d_2 + delta_d_3`.
R5. Scoring: Score gained for the round is `points = floor(d_final / L_bat)`. `score[active_batter] += points`.
R6. [gap-fill] Inning turn limit: If neither player hits the target score within 20 complete batting turns per player, the player with the higher score wins; if equal, a 1-inning sudden-death tiebreaker is played.
R7. Win condition: The first player to reach or exceed `target_score` wins immediately.
## Edge cases
- Tie at the end condition: If both players reach `target_score` at the conclusion of an equal number of innings, sudden-death extra innings are played until one side leads at the end of a full round.
- A player with no legal move: Not applicable; action choices (launch power, tip-strike count) are always available.
- Repetition / cycles: Bounded by R6's maximum turn limit and monotonically increasing scores.
- Simultaneous claims on the same resource or position: Not applicable; turns and phases are strictly sequential.
- Player elimination mid-round / turn order repair: In team play, batting rotates through the roster sequentially; if a batter is retired, the next batter in the rotation steps up.
- Resource exhaustion: Not applicable; wooden pegs and bats are non-depleting.
- Termination guarantee: Guaranteed by monotonic score accumulation toward `target_score` combined with R6 turn bound.
## State representation
- Persistent state: `score: [int, int]`, `target_score: int`, `active_role: (batter_id, fielder_id)`, `inning_count: int`, `team_roster: list[int]`.
- Per-turn ephemeral state: `peg_position: float`, `strikes_remaining: int`, `batter_retired: bool`.
- Observable information: Fully observable by all agents.
## Action space
- `launch(power: float)`: Choose launch effort `[0.0, 1.0]`.
- `tip_strike(aim_angle: float, force: float)`: Strike tapered peg end with force `[0.0, 1.0]`.
- `pass_strike()`: Elect to end tip-strike phase early to preserve current safe distance.
## Playability notes
- Single-player-vs-AI: Natural; AI fielder uses standard probabilistic return models while AI batter optimizes risk-reward trade-offs on high-power launches.
- Group games (n>4): Reduces cleanly to 2 agents by having the fielder agent represent the collective fielding team's best-positioned defender.
- Physical-skill games: Parameterized via `skill_batter` (hit distance and consistency) and `skill_fielder` (catch radius and throw accuracy).
- What is lost in the adaptation: The tactile nuance of striking the tapered tip at the exact millimeter to produce stable airborne spin is abstracted into a probability distribution.
## Implementation hints
Low complexity. Maintain a 1D coordinate axis with base at 0. First milestone: build deterministic scoring and role-swapping loop with dummy random variables, then calibrate the distance and catch probability functions.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Tip-cat and Bat (Serbia). (n.d.). Games of Countries. https://gamesofcountries.com/games/rs-serbia/klis
@misc{gamesofcountries-rs-serbia-klis,
title = {Tip-cat and Bat (Serbia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/rs-serbia/klis}
}