Skip to main content
Formal Specification

Little Pig (Driving the Pig / Kovinky) — Formal Specification

Ukraine · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 1
# Svynka (Свинка) — AI-optimized specification ## General idea An ancient Ukrainian pastoral stick-and-ball game (*Svynka*, *Kovinky*, or *Pastusha Svynka*). One player, the Herder (*свинар*), uses a curved wooden club (*ковінька*) to drive a wooden block or ball (the "Pig" / *свинка*) into a central earthen pen (*кошара*). Surrounding defenders guard their individual perimeter holes (*гнізда*), timing aggressive lunges to strike the ball away while risking having their unguarded nests poached by the Herder's stick. ## Formal model - **Abstraction taken:** 2D continuous/ticked radial arena (R=2.50m) with rigid-body rolling dynamics for the ball (rball=0.04m), stick reach arcs (Lstick=0.90m), and discrete hole-occupancy states (`grounded_in_hole = true/false`). - **Player/agent count:** 1 Herder agent (D), M Defender agents (F1,…,FM, with M∈[2,9]). - **Turn model:** Synchronous discrete physics simulation ticks (1 tick = 0.05 seconds) structured into rounds. ## Formal rules R1. Setup & Radial Geometry: - Central Pen (*Кошара*): Circle at (0,0) with radius rpen=0.15m. - Perimeter Nests (*Гнізда*): M holes positioned at 𝐡k=(Rcos⁡θk,Rsin⁡θk) where R=2.50m and θk=2πkM. - Each defender Fk starts at 𝐡k with stick grounded: `occupant[k] = F_k`, `is_grounded[k] = true`. - Initial Herder D starts at (0.0,6.0m) with the ball 𝐱ball=(0.0,5.5m). - `herder_time[Player] = 0.0`, `round_number = 1`. R2. Herder Actions & Driving Mechanics: - Herder maneuvers with club: - `drive_pig(vx, vy, force)`: Applies stick impulse to propel ball toward the central pen (vball≤6.0m/s). - `poach_hole(target_nest_idx)`: Thrusts stick tip into an unguarded nest 𝐡k (d≤0.10m). R3. Defender Actions & Risk-Reward Lunges: - Defenders may submit: - `hold_nest()`: Keeps stick planted in nest (`is_grounded[k] = true`). Immune from poaching. - `lunge_strike_pig(strike_vx, strike_vy)`: Lifts stick (`is_grounded[k] = false`), steps out up to 1.2m from nest, and executes a defensive clearance hit, blasting the ball away. - `return_plant_nest()`: Rushes back to nest to re-ground stick. R4. Role Turnover 1 — Nest Poaching (*Зайняти гніздо*): - If Herder executes `poach_hole(k)` while `is_grounded[k] == false`: - Herder successfully claims nest k (`occupant[k] = D`, `is_grounded[k] = true`). - Defender Fk becomes the new Herder (D←Fk). - Ball resets to (0,6.0m); round turnover occurs. R5. Role Turnover 2 — Penning the Pig (*Свинка в кошарі*): - If the ball comes to rest inside the central pen (‖𝐱ball‖≤0.15m and vball<0.10m/s): - **Mandatory Hole Scramble:** All M defenders must immediately vacate their current nests and sprint to claim a DIFFERENT nest. - Herder D participates in the sprint to claim any vacant nest. - The single player who fails to ground their stick in a nest becomes the new Herder (D). R6. Match Victory: - Match concludes after 5 round cycles (or Tmax=300s). - The player with the lowest cumulative time spent as Herder is proclaimed Champion. ## Edge cases - Tie at the end condition: Tied players conduct a 1-on-1 penalty drive into the central pen from 8.0 meters [gap-fill]. - A player with no legal move: Non-active players hold nest grounds or chase clear balls. - Repetition / cycles: Ball rolling friction (μroll=0.08) dampens clearance strikes, ensuring the ball always returns to controllable speeds. - Simultaneous claims on the same hole: First stick tip arriving within 0.10m of nest center claims ownership. - Elimination mid-round and turn-order repair: Players never eliminated; roles swap dynamically among active participants. - Resource exhaustion: Exactly 1 wooden ball and M+1 curved sticks. - Termination guarantee: Monotonic progress of round timer guarantees match concludes within 6000 ticks. ## State representation - Persistent state: - `round_number`: Integer ∈[1,5]. - `herder_time`: Map of Player ID → float seconds. - Per-tick ephemeral state: - `round_clock`: Float [0.0,60.0] seconds. - `herder_id`: Agent ID. - `ball_pos`: Coordinate (x,y). - `ball_vel`: Vector (vx,vy). - `player_positions`: Map of Player ID →(x,y). - `nest_occupants`: Array of size M mapping nest index → Player ID. - `is_nest_grounded`: Array of size M mapping nest index → boolean. - `scramble_active`: Boolean. - Observable information: Fully observable coordinates of all players, curved stick tip positions, ball trajectory, and nest grounding status. ## Action space - `drive_pig(vx, vy, force)`: Herder ball steering impulse. - `poach_hole(target_nest_idx)`: Herder nest capture thrust. - `hold_nest()`: Defender stationary grounding. - `lunge_strike_pig(strike_vx, strike_vy)`: Defender clearance blast. - `return_plant_nest()`: Defender emergency retreat. - `scramble_sprint_nest(target_nest_idx)`: Scramble dash action. ## Playability notes - Single-player-vs-AI: Fast-paced tactical hockey/herding duel. As Herder, player feints drives toward the pen to bait defenders into lunging, then snaps a rapid poach into the exposed nest; as Defender, player coordinates clearing strikes with neighboring holes. - Group reduction: Reducible to 1 Herder and 2 Defenders (3 players). - Physical-skill games: Curved club swing arcs, rolling ball friction, stick tip spatial collision checks, and sprint deceleration are modeled in 2D continuous space. - What is lost: The fragrant green pasture, the hand-carved crook of a wild hazel branch (*ковінька*), and the wild scramble of ten village shepherds lunging simultaneously with wooden sticks. ## Implementation hints 2D continuous kinetic ball-and-stick collision engine combined with a radial nest occupancy state tracker. First milestone: implement ball driving into the central pen and defender clearance strikes before adding stick-in-hole grounding checks and the multi-player scramble transition.

Download as JSON

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

Download JSON
Cite this page

Little Pig (Driving the Pig / Kovinky) (Ukraine). (n.d.). Games of Countries. https://gamesofcountries.com/games/ua-ukraine/svynka

@misc{gamesofcountries-ua-ukraine-svynka,
  title = {Little Pig (Driving the Pig / Kovinky) (Ukraine)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ua-ukraine/svynka}
}