Skip to main content
Formal Specification

Branch / Little Bat (Traditional Ukrainian Bat-and-Ball) — Formal Specification

Ukraine · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Hylka (Гилка) — AI-optimized specification ## General idea A traditional Ukrainian bat-and-ball team field game (*Hylka* or *Palytsia*). A batting team strikes a solid ball into an open meadow and attempts to complete corridor sprints between the home base (*місто*) and the far base (*краля*) to score runs. Fielders attempt mid-air fly catches, or throw the ball to tag sprinting runners, triggering a chaotic reciprocal counter-tag scramble for possession of the home town. ## Formal model - **Abstraction taken:** 2D/3D kinematic pitch simulation (40m×25m) with 3D parabolic ball trajectories, corridor sprint vectors, throw-tag collision raycasts, and reciprocal team scramble mechanics. - **Pitch Geometry:** - Home Zone (*Місто*): y∈[0.0,5.0m], x∈[−12.5,+12.5m] (Safe Zone). - Open Field (*Поле*): y∈[5.0,35.0m], x∈[−12.5,+12.5m] (Danger Zone). - Far Base (*Краля*): y∈[35.0,40.0m], x∈[−12.5,+12.5m] (Safe Zone). - **Player/agent count:** 2 Teams (𝒯bat,𝒯field), each with M players (M∈[4,10]). - **Turn model:** Sequential batting attempts linked to synchronous discrete simulation ticks (1 tick = 0.1 seconds) during active sprints and scramble phases. ## Formal rules R1. Setup & Inning Structure: - Pitch initialized with boundaries: Home base at y∈[0,5], Field y∈[5,35], Far base y∈[35,40]. - Batting lineup queued in *місто*; Fielders deployed across *поле* with 1 Pitcher stationed at (0,5.0m). - Match length: Ninnings=6 total innings (or target score of 20 runs) [gap-fill]. - `match_runs[T] = 0`, `current_inning = 1`. R2. Pitching & Batting Execution: - Pitcher tosses ball vertically: `pitch_ball()`. - Active batter swings: `strike_ball(power, azimuth, elevation)`. - A legal hit must enter the open field (y>5.0m) within lateral sidelines |x|≤12.5m. R3. Fly Catch Turnover (*З льоту*): - If any fielder catches a struck ball in mid-air before turf contact (P(catch)=f(speed,dist)): - Inning concludes immediately. - Teams swap roles (𝒯bat↔𝒯field). R4. Base Running & Run Scoring: - Following a legal hit: - Batter may execute `sprint_to_far_base()` (v≤5.0m/s) or hold in *місто*. - Runners staged at *краля* may execute `return_sprint_to_home()`. - Every runner completing a full round trip (Home → Far Base → Home) scores 1 run: `match_runs[T_bat] += 1`. R5. Tagging & The General Scramble (*Печення*): - Fielders retrieve ball and throw at runners in the danger zone: `throw_tag(runner_id)`. - If ball contacts a runner in y∈(5,35): - Runner is tagged. - **General Scramble Triggered:** All fielders must immediately sprint toward *місто* (`sprint_to_home()`). - The tagged team retrieves the ball and attempts a counter-tag: `counter_tag_fielder(fielder_id)`. - **Scramble Resolution:** - If a fielder is counter-tagged before reaching *місто*: The original batting team retains town possession (no turnover). - If all fielders cross into *місто* untouched: Full role turnover occurs (𝒯bat↔𝒯field). R6. Match Victory: - After 6 complete innings, the team with the higher run total is declared the winner. ## Edge cases - Tie at the end condition: 1 extra sudden-death inning is played to break a score tie [gap-fill]. - A player with no legal move: Waiting batters and base-holders choose between holding safe position or sprinting. - Repetition / cycles: Finite team batting queues and bounded sprint transit times prevent infinite loops. - Simultaneous claims on the same position: Evaluated via raycast hitboxes for ball-runner intersections. - Elimination mid-round and turn-order repair: Fixed team rosters; runners return to the batting order upon completing round trips. - Resource exhaustion: Exactly 1 ball and 1 bat in play. - Termination guarantee: Strict 6-inning limit and monotonic clock ticks guarantee match termination. ## State representation - Persistent state: - `inning_number`: Integer ∈[1,6]. - `match_runs`: Map of Team → integer. - `batting_team`: Team Enum. - `batter_queue`: List of Player IDs. - Per-tick ephemeral state: - `ball_pos`: 3D coordinates (x,y,z). - `ball_vel`: 3D velocity vector (vx,vy,vz). - `player_positions`: Map of Player ID →(x,y). - `runners_in_transit`: List of Player IDs. - `runners_at_far_base`: List of Player IDs. - `is_scramble_active`: Boolean. - Observable information: Fully observable 3D ball coordinates, player pitch positions, and scoreboard. ## Action space - `pitch_ball()`: Vertical server pitch. - `strike_ball(power, azimuth, elevation)`: Batter swing vector. - `sprint_to_far_base()`: Outbound sprint dash. - `return_sprint_to_home()`: Inbound sprint dash. - `throw_tag(target_id)`: Fielder throw targeting running player. - `counter_tag_fielder(target_id)`: Scramble counter-throw attempt. ## Playability notes - Single-player-vs-AI: Electrifying bat-and-ball sports game. Balances the physics of batting angles against tactical base-running choices, crowned by the high-adrenaline general scramble where hunters instantly become the hunted. - Group reduction: Reducible to 2 teams of 3 players each. - Physical-skill games: Solid wood bat impact recoil, aerodynamic ball drag, throwing accuracy against moving human targets, and diving slides into safe zones are modeled via continuous physics. - What is lost: The sharp sting of a hard leather ball tagging your shoulder at full sprint, the grass stains from diving across the baseline, and the triumphant cheers of village pastoralists. ## Implementation hints 2D/3D hybrid kinematic pitch simulator with segment intersection testing for tag throws and state machine handling for the bidirectional scramble transition. First milestone: build batting flight mechanics, base running, and throw-tagging before integrating the counter-tag scramble sequence.

Download as JSON

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

Download JSON
Cite this page

Branch / Little Bat (Traditional Ukrainian Bat-and-Ball) (Ukraine). (n.d.). Games of Countries. https://gamesofcountries.com/games/ua-ukraine/hylka

@misc{gamesofcountries-ua-ukraine-hylka,
  title = {Branch / Little Bat (Traditional Ukrainian Bat-and-Ball) (Ukraine)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ua-ukraine/hylka}
}