Skip to main content
Formal Specification

Bilharda / Portuguese Tip-Cat — Formal Specification

Portugal · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 5
# Jogo da Bilharda — AI-optimized specification ## General idea An asymmetric two-agent batting and fielding game. The batting agent attempts a two-stage strike (tip flip followed by mid-air forward drive) to maximize outfield distance, while the fielding agent attempts an airborne catch or a precision throw back into the home base circle to dismiss the batter and swap roles. ## Formal model - **Abstraction taken:** Hand-eye coordination for the two-stage hit is abstracted into a success probability function based on batter skill and risk level; flight trajectory and fielder return throw are modeled as stochastic outcomes. - **Player/agent count:** 2 agents in 1v1 asymmetric roles (Batter and Fielder). - **Turn model:** Sequential phase-based round structure with role swaps upon dismissal. ## Formal rules R1. Setup: Base circle radius `r_base = 0.75m` centered at `(0, 0)`. Batalho length `L_bat = 0.55m`. Target win score `S_win = 100` points. Roles: Agent 1 = Batter, Agent 2 = Fielder. R2. Batting Phase: The batter chooses a strike intensity `I in {safe, balanced, aggressive}`. - Tip-and-hit success probability: `P(hit | safe) = 0.90`, `P(hit | balanced) = 0.75`, `P(hit | aggressive) = 0.55` [gap-fill]. - If miss: Batter incurs 1 strike. 3 strikes in an inning results in dismissal (role swap, 0 points scored that round). - If hit: Launch distance `D ~ N(mu_I, sigma_I)` where `mu_safe = 15m`, `mu_balanced = 25m`, `mu_aggressive = 40m` [gap-fill]. R3. Airborne Catch Check: If hit, fielder has catch probability `P(catch) = 0.05 + 0.005 * D` (longer air time increases catch chance up to cap 0.35 [gap-fill]). If caught: Batter is out immediately, 0 points, role swap. R4. Return Throw Phase: If not caught, bilharda rests at distance `D`. Fielder attempts a return throw to hit the base circle: - Return throw accuracy: `P(hit_circle) = max(0.05, 1.0 - (D / 30.0))` [gap-fill]. - If return throw hits circle: Batter is dismissed; 0 points; roles swap. - If return throw misses circle: Batter scores `floor(D / L_bat)` points (where each stick length = 1 point). R5. Role Swap: Upon dismissal, active Batter becomes Fielder, and active Fielder becomes Batter. R6. Win condition: The first agent whose cumulative score as Batter reaches `>= 100` points after an equal number of completed innings (or immediately if Agent 2 surpasses Agent 1 in the final inning) wins the match. ## Edge cases - Tie at the end condition: If both agents have equal scores `>= 100` after equal innings, sudden-death innings continue until the tie is broken. - A player with no legal move: Not applicable; choosing batting intensity or return throw is always valid. - Repetition / cycles: Score monotonically increases; maximum innings capped at 20 [gap-fill]. - Simultaneous claims on the same resource or position: Turns and phases are strictly sequential. - Player elimination mid-round: If an agent disconnects, remaining innings are awarded to the active agent. - Resource exhaustion (pieces, tokens, space, time): Inning limit caps total game time. - Termination guarantee: Guaranteed because each valid non-dismissal hit adds positive points, and role transitions guarantee both agents accumulate score opportunities. ## State representation - Persistent state: `scores: [int, int]`, `current_batter: int (0 or 1)`, `inning: int`, `strikes: int`. - Per-round ephemeral state: `hit_success: bool`, `distance: float`, `is_caught: bool`, `return_hit: bool`, `points_earned: int`. - Minimal observable information: Fully observable public state. ## Action space - Batter Action: `bat(intensity: Enum)`: where `intensity in {safe, balanced, aggressive}`. - Fielder Action: `field(positioning: Enum)`: where `positioning in {deep_outfield, mid_court, shallow}` (adjusts catch probability vs return throw accuracy). ## Playability notes - Single-player-vs-AI: Engine-ready. AI selects batting risk based on current point deficits and fielder positioning. - Group games (n>4): Extends to 2 teams by rotating through batting rosters before swapping sides. - Physical-skill games: Physical batting coordination parameterized into intensity and fielder catch curves. - What is lost in the adaptation: The tactile timing of striking a spinning wooden wedge mid-air. ## Implementation hints Low complexity finite state machine with 3 phases (Hit -> Catch -> Return). Suggested milestone 1: Implement the batter/fielder state machine with deterministic scoring and verify role swap logic on dismissals.

Download as JSON

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

Download JSON
Cite this page

Bilharda / Portuguese Tip-Cat (Portugal). (n.d.). Games of Countries. https://gamesofcountries.com/games/pt-portugal/jogo-da-bilharda

@misc{gamesofcountries-pt-portugal-jogo-da-bilharda,
  title = {Bilharda / Portuguese Tip-Cat (Portugal)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/pt-portugal/jogo-da-bilharda}
}