Formal Specification
Klis and Pala (Croatian Tip-Cat) — Formal Specification
Croatia · stick-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Klis i pala — AI-optimized specification
## General idea
An asymmetrical two-team bat-and-peg territorial contest where an active batter launches a tapered wooden peg downfield over up to three sequential strikes, while defending fielders attempt an aerial interception catch or base return throw, with surviving hits yielding points measured in discrete bat-length units.
## Formal model
- **Abstraction taken:** The 3D flight of the struck peg is modeled via a 2D landing coordinate distribution parameterized by agent swing force and contact angle. Defensive catch and return throws are modeled via distance-dependent probability functions.
- **Player/agent count:** 2 teams of 3 agents (, ).
- **Turn model:** Sequential innings. Within a half-inning, each batter takes a turn until 3 outs are recorded.
## Formal rules
R1. Setup: Base trench location is origin . Win score threshold points. Team scores initialized: .
R2. Batter Turn Progression:
- Active batter executes up to 3 consecutive strikes ().
- At strike , peg is scooped from .
- At strikes , peg is popped and struck from resting position .
- [gap-fill] Landing coordinates: sampled from .
R3. Defensive Aerial Catch:
- On each strike , if a fielder catches the peg mid-air (), batter is OUT with 0 points scored.
R4. Base Return Throw:
- If uncaught after strike 3, defender throws peg from toward .
- If (where m), batter is OUT with 0 points.
R5. Point Scoring:
- If throw misses base, points awarded = .
- .
R6. Inning Turnover and Match End:
- After 3 outs, batting and defending teams switch roles.
- [gap-fill] Match terminates when a team reaches at the end of symmetrical half-innings; the team with the higher score wins.
## Edge cases
- Tie at the end condition: Tied scores after equal innings trigger an extra sudden-death full inning.
- A player with no legal move: Batting strikes and return throws are always legal.
- Repetition / cycles: Bounded because points accumulate monotonically () and innings progress deterministically on 3 outs.
- Simultaneous claims on the same resource or position: Turns and throws occur in strict sequential order.
- Player elimination mid-round; turn order repair: If an agent disconnects, rotation skips the missing slot; outs required remain 3.
- Resource exhaustion: Field boundaries and peg physical properties are invariant across turns.
- Termination guarantee: Monotonically increasing score with positive expected points per turn guarantees reaching 500 points in finite innings.
## State representation
- Persistent state: `scores: dict[int, int]`, `inning: int`, `outs: int`, `active_team: int`, `batter_idx: int`.
- Ephemeral turn state: `peg_pos: tuple[float, float]`, `strike_count: int`, `is_out: bool`.
- Observable information: Peg position and scores are public; defender catch/throw accuracy parameters are private/stochastic.
## Action space
- `strike_peg(power: float, angle: float)`: Batter launches peg.
- `throw_to_trench(accuracy: float)`: Fielder aims return throw at .
## Playability notes
- Single-player-vs-AI: Natural; human plays as batter choosing strike angles against an AI fielding strategy.
- Group games (n>4): Standard 3v3 maps directly to 6 agents (3 per team).
- Physical-skill games: Physical batting and throwing modeled via 2D Gaussian spatial dispersion models.
- What is lost: Tactile wood contact, physical sprint diving catches on grass pastures.
## Implementation hints
Discrete turn-based simulation with spatial vector arithmetic for peg coordinates. First milestone: implement 1v1 batting and return-throw mechanics before extending to 3v3 team rotations.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Klis and Pala (Croatian Tip-Cat) (Croatia). (n.d.). Games of Countries. https://gamesofcountries.com/games/hr-croatia/klis-i-pala
@misc{gamesofcountries-hr-croatia-klis-i-pala,
title = {Klis and Pala (Croatian Tip-Cat) (Croatia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/hr-croatia/klis-i-pala}
}