Skip to main content
Formal Specification

Peg and Bat Game (Shkopa-cingthi) — Formal Specification

Albania · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Loja me cingla — AI-optimized specification ## General idea A two-player/two-team bat-and-peg contest where the batting agent executes a launch and subsequent tipping strikes to drive a small wooden peg across a 1D/2D field, accumulating distance points. The fielding agent attempts to dismiss the batter through air catches or precision return throws targeting the base. ## Formal model - **Abstraction taken:** The continuous 3D aerodynamics of the launched and struck peg are replaced by a 1D distance sampler conditioned on launch power, and a stochastic catch/target resolver parameterized by agent skill and landing distance. - **Player/agent count:** 2 agents (`BATTER`, `FIELDER`). - **Turn model:** Phased sequential turns within an active half-inning; role swap occurs upon dismissal. ## Formal rules R1. Setup: Base trench is at coordinate `x = 0`. Both agents have `score = 0`. Initial roles: Agent 1 is `BATTER`, Agent 2 is `FIELDER`. R2. Phase 1 (Launch): `BATTER` executes `launch()`. The peg travels to distance `D_launch ~ Uniform(10, 30)` units [gap-fill: distance distribution]. R3. Field Catch Check: With probability `P_catch = max(0.05, 0.40 - 0.01 * D_launch)` [gap-fill], `FIELDER` catches the peg in flight: - If caught: `BATTER` is immediately `OUT`. Roles swap (`BATTER` becomes `FIELDER`). Turn ends with 0 points added. R4. Phase 2 (Return Throw): If not caught, `FIELDER` executes `return_throw()` aiming from `D_launch` at base `x = 0`. - Hit probability `P_hit_base = max(0.10, 0.60 - 0.015 * D_launch)` [gap-fill]. - If hit: `BATTER` is `OUT`. Roles swap. Turn ends with 0 points added. R5. Phase 3 (Tip & Strike): If base is missed: - `BATTER` executes `tip_strike()`. With success probability `P_tip = 0.75`, the peg is popped up and struck, traveling an additional `D_strike ~ Uniform(15, 45)` units. - If `tip_strike` fails: `D_strike = 0`. - Total round distance `D_total = D_launch + D_strike`. R6. Scoring: Points scored this round `= floor(D_total / bat_unit_length)`. Running score for batting agent updates: `score += points`. R7. If `score >= 100`, the active `BATTER` wins the game immediately. Otherwise, `BATTER` continues batting for the next round until dismissed. R8. [gap-fill] Inning limit: If after 30 total rounds neither agent has reached 100 points, the agent with the strictly higher score wins; if tied, sudden-death single launches decide the winner. ## Edge cases - Tie at the end condition: Resolved by R8 sudden-death single launch (greater distance wins). - A player with no legal move: Not applicable; action prompts are strictly deterministic based on current phase. - Repetition / cycles: Bounded by R8 round limit (max 30 rounds) and monotonic point accumulation toward 100. - Simultaneous claims on the same resource or position: Not applicable; phases are sequential. - Player elimination mid-round; turn order repair: When `BATTER` is dismissed, roles invert immediately with clean phase reset to R2. - Resource exhaustion (pieces, tokens, space, time): Not applicable; peg position resets to base `x = 0` upon dismissal or successful scoring. - Termination guarantee: why the game provably ends: Guaranteed because batting turns accumulate strictly positive integer points with non-zero expected gain, and R8 enforces a strict 30-round cutoff. ## State representation - Persistent state: `score_agent1: int`, `score_agent2: int`, `active_batter: AgentID`, `total_rounds: int`. - Per-turn ephemeral state: `phase: {LAUNCH, RETURN_CHECK, TIP_STRIKE, RESOLVE_SCORE}`, `current_peg_pos: float`, `is_dismissed: bool`. - Observable information: Fully observable by both agents at all times. ## Action space - `launch(power: float)`: `BATTER` launches peg from base. - `return_throw(accuracy: float)`: `FIELDER` attempts to strike base from peg position. - `tip_strike(power: float)`: `BATTER` attempts aerial strike from landing spot. ## Playability notes - Single-player-vs-AI: Natural and fully direct against an AI opponent with identical stochastic parameterization. - Group games (n>4): Reduces cleanly to 2 agents (1 Batter, 1 Collective Fielder). - Physical-skill games: Motor execution (eye-hand strike timing) is abstracted via the R2/R4/R5 probability curves; strategic risk choice in launch/strike power is preserved. - What is lost in the adaptation: The tactile feel of wooden bat contact, ground deflection variations, and physical fielding sprints. ## Implementation hints Low complexity state machine. Branching factor is 1 per decision point when parameterized continuously, or discrete power tiers (low/med/high). First milestone: Implement single-round launch-catch-strike resolution before connecting the 100-point role-swap game loop.

Download as JSON

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

Download JSON
Cite this page

Peg and Bat Game (Shkopa-cingthi) (Albania). (n.d.). Games of Countries. https://gamesofcountries.com/games/al-albania/loja-me-cingla

@misc{gamesofcountries-al-albania-loja-me-cingla,
  title = {Peg and Bat Game (Shkopa-cingthi) (Albania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/al-albania/loja-me-cingla}
}