Skip to main content
Formal Specification

Galician Billarda (Tip-cat / Bat-and-Peg) — Formal Specification

Spain · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 3
# A billarda — AI-optimized specification ## General idea A turn-based bat-and-peg target game. The batter executes a two-step strike: tapping the pointed tip of a small wooden spindle (*billarda*) to flip it into the air (*chimpo*), then driving it downfield toward a goal opening (*varal*) positioned 40 meters away. Scoring is inversely proportional to the number of strokes required to cross the goal (1 stroke = 3 pts, 2 strokes = 2 pts, 3 strokes = 1 pt). ## Formal model - **Abstraction taken:** The 3D flip-and-drive mechanics are modeled as a two-stage probabilistic transition: Phase 1 (Flip quality / height) determines the timing window for Phase 2 (Mid-air bat drive), which produces a downfield ballistic vector (x,y) toward goal target Xvaral=40.0 m. - **Player/agent count:** 2 agents in singles (or 2 teams of 3 to 5 agents). - **Turn model:** Sequential innings; each agent takes 1 batting sequence per inning over M=10 innings. ## Formal rules R1. Course setup: Batter starts at (0,0). Target *varal* is centered at (0,40.0) m with width Wgoal=2.5 m between stakes. Match length is M=10 innings. R2. Step 1 — Chimpo (Pop): The agent executes tap(pedge,force). - Pop height hflip=sample_height(skill,pedge). - If hflip<0.20 m: Whiff/mis-hit. Attempt is consumed with 0 distance gained. R3. Step 2 — Drive (Swing): If pop is valid, agent executes drive(θaim,power). - Resulting travel vector (Δx,Δy) is sampled with variance σ∝(1−skill). - New spindle position: (xnew,ynew)=(xcurr+Δx,ycurr+Δy). R4. Varal Scoring: - If the spindle crosses the line y≥40.0 within |x|≤Wgoal/2 on Stroke 1: +3 points (*varada directa*). Inning ends. - If the spindle lands short (y<40.0): Agent may take Stroke 2 from the resting coordinates (xnew,ynew). - If crossing occurs on Stroke 2: +2 points. - If crossing occurs on Stroke 3: +1 point. - If not crossed after 3 strokes: 0 points. Inning ends. R5. Team score pooling: Points are accumulated to the agent's running total. R6. [gap-fill] Out-of-bounds: If a stroke lands outside lateral field boundaries (|x|>10.0 m), the next stroke must be played from the boundary intersection point without distance penalty. R7. Win condition: The agent or team with the highest point total after M innings wins the match. ## Edge cases - **Tie at the end condition:** [gap-fill] If tied after M innings, a sudden-death single-stroke playoff round is contested; closest to or through the varal wins. - **A player with no legal move:** Not applicable; tap and swing actions are always available from current coordinates. - **Repetition / cycles:** Bounded strictly by the 3-stroke cap per inning and 10-inning match structure. - **Simultaneous claims on the same resource or position:** Not applicable; strictly sequential turns. - **Player elimination mid-round:** Not applicable; fixed roster across all innings. - **Resource exhaustion:** Inning counter monotonically decrements 10→0. - **Termination guarantee:** Guaranteed by finite stroke and inning bounds. ## State representation - **Persistent state:** `scores` {A:int,B:int}, `current_inning` (1..10), `active_agent_id`. - **Per-inning ephemeral state:** `current_stroke_count` (1..3), `spindle_pos` (x,y), `varal_cleared` (bool). - **Observable information:** Fully observable to all agents. ## Action space - `pop_tap(strike_offset, force)`: Controls flip height and rotational stability. - `swing_drive(aim_angle, power)`: Continuous parameters directing mid-air stroke toward (0,40.0). ## Playability notes - **Single-player-vs-AI:** Natural; human adjusts strike timing and aim angle while AI calculates optimal risk trajectories. - **Group games (n>4):** Reduces cleanly to sequential team batting lineups. - **Physical-skill games:** Core dynamic: High power increases travel distance but scales dispersion σ, risking lateral out-of-bounds or missing the 2.5m goal aperture. [gap-fill] Accuracy: σangle=0.05×(1−0.7×skill). - **What is lost in the adaptation:** Hand-eye coordination of swinging a physical wooden bat at a tumbling mid-air peg. ## Implementation hints Low complexity. 2D trajectory propagation with 3-stroke state machine per inning. First milestone: Implement 2-step pop-and-drive trajectory calculator with goal-line crossing evaluation, then add 10-inning match loop.

Download as JSON

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

Download JSON
Cite this page

Galician Billarda (Tip-cat / Bat-and-Peg) (Spain). (n.d.). Games of Countries. https://gamesofcountries.com/games/es-spain/a-billarda

@misc{gamesofcountries-es-spain-a-billarda,
  title = {Galician Billarda (Tip-cat / Bat-and-Peg) (Spain)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/es-spain/a-billarda}
}