Formal Specification
Galician Billarda (Tip-cat / Bat-and-Peg) — Formal Specification
Spain · stick-team · Confidence: low
← Back to game pageImplementation 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 toward goal target .
- **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 innings.
## Formal rules
R1. Course setup: Batter starts at . Target *varal* is centered at with width between stakes. Match length is innings.
R2. Step 1 — Chimpo (Pop): The agent executes .
- Pop height .
- If : Whiff/mis-hit. Attempt is consumed with 0 distance gained.
R3. Step 2 — Drive (Swing): If pop is valid, agent executes .
- Resulting travel vector is sampled with variance .
- New spindle position: .
R4. Varal Scoring:
- If the spindle crosses the line within on Stroke 1: points (*varada directa*). Inning ends.
- If the spindle lands short (): Agent may take Stroke 2 from the resting coordinates .
- If crossing occurs on Stroke 2: points.
- If crossing occurs on Stroke 3: 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 (), 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 innings wins the match.
## Edge cases
- **Tie at the end condition:** [gap-fill] If tied after 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 .
- **Termination guarantee:** Guaranteed by finite stroke and inning bounds.
## State representation
- **Persistent state:** `scores` , `current_inning` (), `active_agent_id`.
- **Per-inning ephemeral state:** `current_stroke_count` (), `spindle_pos` , `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 .
## 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: .
- **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 JSONCite 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}
}