Skip to main content
Formal Specification

Tip-Cat (Cypriot Bat and Peg) — Formal Specification

Cyprus · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Λιγκρίν — AI-optimized specification ## General idea A traditional Cypriot bat-and-peg game where a batter launches a wooden peg (*λιγκρίν*) from stone supports and strikes it mid-air. The batting side scores discrete points proportional to distance measured in bat-lengths, while the fielding side attempts either an airborne catch or a targeted return throw at the home base to record an out. ## Formal model - **Abstraction taken:** The physical motor skill of launching and striking the peg is abstracted into a discrete action space coupled with a stochastic trajectory resolver (outputting launch distance and hang time based on batter skill). The fielding return throw is modeled as an accuracy check against target radius. - **Player/agent count:** 2 teams of N agents (1 ≤ N ≤ 6), designated Team A (batters) and Team B (fielders), alternating roles across innings. - **Turn model:** Sequential half-innings. Within a half-inning, active batters take turns sequentially until all N batters are eliminated. ## Formal rules R1. Setup: Base state initialized with `target_score` (default: 100), `bat_length = 0.6` metres. Team scores set to 0. Team A bats first. R2. Active batter selects a strike posture from `{STANDARD, ASSELLIAN, KOLIAN}`. R3. The strike outcome is sampled via the trajectory resolver: - Probability of contact: `P(contact) = f(batter_skill, posture_difficulty)`. - If miss: Batter receives 1 strike. [gap-fill] 2 consecutive strikes result in an out. - If contact: Resolver outputs a 2D landing coordinate `(x, y)` and hang time `t`. R4. Fielding resolution: - If any fielding agent can reach `(x, y)` within time `t`, an airborne catch is attempted: `P(catch) = f(fielder_speed, distance)`. - If catch succeeds: Batter is immediately OUT; scores 0 points. - If catch fails / lands uncaught: The nearest fielding agent retrieves the peg and executes a return throw toward `(0, 0)` with target radius `r = 0.6m` (representing the bat laid across the stones). - If return throw hits target (`dist <= r`): Batter is OUT; scores 0 points. - If return throw misses (`dist > r`): Batter scores `floor(sqrt(x^2 + y^2) / bat_length)` points, added to their team's cumulative score. R5. Batter rotation & Inning swap: - When a batter is OUT, the next batter in the team queue becomes active. - When all N batters on the active team are OUT, the half-inning ends. Teams swap roles (batters become fielders, fielders become batters). R6. Win condition: - If an active team reaches or exceeds `target_score` during their half-inning, they win immediately. - [gap-fill] If a fixed innings limit (default: 3 complete innings) is reached before target score, the team with the higher score wins. If tied after fixed innings, 1 tie-breaker sudden-death inning is played. ## Edge cases - Tie at the end condition: Resolved via single-batter sudden-death extra inning where each team gets 1 batter; highest distance scored wins. - A player with no legal move: Not applicable; an active batter always has a legal strike action available. - Repetition / cycles: Bounded by the deterministic progression of batter outs (each strike/out strictly advances the queue). - Simultaneous claims on the same resource or position: [gap-fill] For fielding interception, if multiple fielders can reach the landing spot, the fielder with lowest arrival time executes the catch check. - Player elimination mid-round: When a batter is put out, they are removed from the current half-inning queue; pointer shifts to `(current_index + 1) mod remaining_batters`. - Resource exhaustion: Not applicable; the peg and bat are persistent and reset to `(0, 0)` on each pitch. - Termination guarantee: Every strike attempt results either in an out (advancing toward half-inning turnover) or non-negative integer score accumulation toward `target_score`, provably terminating in finite turns. ## State representation - Persistent state: `team_scores: [int, int]`, `current_inning: int`, `batting_team_id: int`, `active_batter_idx: int`, `remaining_batters: list[int]`, `strikes_current_batter: int`. - Per-turn ephemeral state: `selected_posture: Enum`, `launch_coord: (float, float)`, `hang_time: float`, `retrieval_fielder_id: int`, `throw_distance_to_base: float`. - Minimal observable information: Fully observable to all agents (positions, scores, and active queue are public knowledge). ## Action space - `strike(posture: Enum)`: Batter action selecting one of 3 postures (STANDARD: moderate risk/distance; ASSELLIAN: higher risk/distance bonus; KOLIAN: highest risk/distance multiplier). - `field_position(x: float, y: float)`: Fielder spatial distribution vector before the hit. - `return_throw(power: float, aim_angle: float)`: Fielder action attempting to hit the base circle. ## Playability notes - Single-player-vs-AI: Natural 1v1 adaptation (1 batter vs 1 autonomous fielder-pitcher agent). - Group games (n>4): Cleanly reduces to 2-agent form by having 1 agent represent the batting queue and 1 agent control the collective fielding probability distribution. - Physical-skill games: Motor dexterity abstracted into probability curves parameterized by continuous skill scalars `[0.0, 1.0]`. - What is lost in the adaptation: The tactile biomechanics of hand-eye coordination required to double-tap a spinning wooden cylinder in mid-air. ## Implementation hints Low-to-medium state complexity. The primary component is the 2D projectile landing model. First milestone: implement a 1v1 turn loop with fixed probability distributions for hit/catch/throw-accuracy before layering multi-agent positioning.

Download as JSON

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

Download JSON
Cite this page

Tip-Cat (Cypriot Bat and Peg) (Cyprus). (n.d.). Games of Countries. https://gamesofcountries.com/games/cy-cyprus/lingrin

@misc{gamesofcountries-cy-cyprus-lingrin,
  title = {Tip-Cat (Cypriot Bat and Peg) (Cyprus)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/cy-cyprus/lingrin}
}