Formal Specification
Little Pig (Driving the Pig / Kovinky) — Formal Specification
Ukraine · stick-team · Confidence: low
← Back to game pageImplementation 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 () with rigid-body rolling dynamics for the ball (), stick reach arcs (), and discrete hole-occupancy states (`grounded_in_hole = true/false`).
- **Player/agent count:** 1 Herder agent (), Defender agents (, with ).
- **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 with radius .
- Perimeter Nests (*Гнізда*): holes positioned at where and .
- Each defender starts at with stick grounded: `occupant[k] = F_k`, `is_grounded[k] = true`.
- Initial Herder starts at with the ball .
- `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 ().
- `poach_hole(target_nest_idx)`: Thrusts stick tip into an unguarded nest ().
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 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 (`occupant[k] = D`, `is_grounded[k] = true`).
- Defender becomes the new Herder ().
- Ball resets to ; round turnover occurs.
R5. Role Turnover 2 — Penning the Pig (*Свинка в кошарі*):
- If the ball comes to rest inside the central pen ( and ):
- **Mandatory Hole Scramble:** All defenders must immediately vacate their current nests and sprint to claim a DIFFERENT nest.
- Herder 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 ().
R6. Match Victory:
- Match concludes after 5 round cycles (or ).
- 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 () dampens clearance strikes, ensuring the ball always returns to controllable speeds.
- Simultaneous claims on the same hole: First stick tip arriving within 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 curved sticks.
- Termination guarantee: Monotonic progress of round timer guarantees match concludes within 6000 ticks.
## State representation
- Persistent state:
- `round_number`: Integer .
- `herder_time`: Map of Player ID float seconds.
- Per-tick ephemeral state:
- `round_clock`: Float seconds.
- `herder_id`: Agent ID.
- `ball_pos`: Coordinate .
- `ball_vel`: Vector .
- `player_positions`: Map of Player ID .
- `nest_occupants`: Array of size mapping nest index Player ID.
- `is_nest_grounded`: Array of size 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 JSONCite 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}
}