Skip to main content
Formal Specification

Klis and Pala (Croatian Tip-Cat) — Formal Specification

Croatia · 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 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 (Tbat={B1,B2,B3}, Tdef={D1,D2,D3}). - **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 (0,0). Win score threshold Starget=500 points. Team scores initialized: S(T1)=0,S(T2)=0. R2. Batter Turn Progression: - Active batter Bk executes up to 3 consecutive strikes (s∈{1,2,3}). - At strike s=1, peg is scooped from (0,0). - At strikes s∈{2,3}, peg is popped and struck from resting position (xs−1,ys−1). - [gap-fill] Landing coordinates: (xs,ys)=(xs−1,ys−1)+(Δx,Δy) sampled from 𝒩(μshot,Σshot). R3. Defensive Aerial Catch: - On each strike s, if a fielder catches the peg mid-air (Pcatch=f(dist,skill)), batter is OUT with 0 points scored. R4. Base Return Throw: - If uncaught after strike 3, defender throws peg from (x3,y3) toward (0,0). - If ‖throw_land−(0,0)‖≤Lpala (where Lpala≈0.7 m), batter is OUT with 0 points. R5. Point Scoring: - If throw misses base, points awarded = ⌊‖(x3,y3)‖Lpala⌋. - S(Tbat)←S(Tbat)+points. R6. Inning Turnover and Match End: - After 3 outs, batting and defending teams switch roles. - [gap-fill] Match terminates when a team reaches S≥500 at the end of symmetrical half-innings; the team with the higher score wins. ## Edge cases - Tie at the end condition: Tied scores ≥500 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 (≥0) 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 (0,0). ## 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 JSON
Cite 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}
}