Skip to main content
Formal Specification

Piglet (Polish Pastoral Pit-and-Stick Game / Czoromaj) — Formal Specification

Poland · stick-team · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Świnka — AI-optimized specification ## General idea A circular multi-agent territory-defense and feint game. Peripheral defending agents anchor sticks inside perimeter pit nodes to maintain safe ownership. A central shepherd agent drives a moving ball token toward peripheral pits while watching for opportunities to occupy any pit temporarily vacated by a defender who lifts their stick to strike the ball. ## Formal model - **Abstraction taken:** The continuous pasture is modeled as a 1-center star graph with K=N−1 perimeter pit nodes V={v1,…,vK} arranged symmetrically around central node v0 at radius R=3 m. Ball position is a 2D coordinate on the disk. Pit occupancy is represented as a boolean state per pit: `occupied_by_stick(v_k) \in {True, False}`. - **Player/agent count:** N agents (1 Shepherd S, K=N−1 Defenders D1..DK). - **Turn model:** Tick-based simultaneous action selection. All agents commit physical actions (strike ball, hold pit, or steal pit) simultaneously each tick. ## Formal rules R1. **Setup:** Arena graph has K=N−1 perimeter pits. Each defender Dk occupies pit vk with stick planted (`is_planted = True`). Shepherd S stands at center node v0 with ball B. R2. **Action selection per tick:** - Shepherd S selects one action: - `drive_ball(target_pit_k)`: Strike ball toward perimeter pit vk. - `steal_pit(target_pit_k)`: Thrust stick toward perimeter pit vk. - Each Defender Dk selects one action: - `guard_pit()`: Keep stick planted inside vk (`is_planted = True`). - `strike_ball()`: Lift stick (`is_planted = False`) to bat incoming ball back toward center. R3. **Resolution of actions:** - **Ball drive resolution:** - If S executes `drive_ball(v_k)`: Ball reaches vk. - If Dk chose `strike_ball()`: Defender strikes the ball away with success probability Pdeflect=0.85. Ball rebounds to center v0. - If Dk chose `guard_pit()`: Defender cannot bat the ball; ball enters pit vk with probability Pgoal=0.75. - **Pit stealing resolution:** - If S executes `steal_pit(v_k)`: - If Dk has `is_planted == False` (defender lifted stick to strike): Steal succeeds with probability Psteal=0.80. S claims pit vk, and Dk is dispossessed. - If Dk has `is_planted == True`: Steal automatically fails. R4. **Role turnover:** - If ball successfully enters vk, or if S successfully steals pit vk: - Defender Dk becomes the new Shepherd (S←Dk). - The former Shepherd takes ownership of pit vk (Dk←S). - Ball resets to center v0. R5. [gap-fill] **Scoring and match victory:** - Each tick an agent successfully retains a perimeter pit, they accumulate +1 defense point. - The match runs for a fixed duration of T=120 ticks. The agent with the highest cumulative defense points wins. ## Edge cases - **Tie at the end condition:** If two agents tie in defense points at tick 120, [gap-fill] the agent currently holding a perimeter pit wins over the central shepherd. - **A player with no legal move:** All agents always have legal `guard_pit()` or `drive_ball()` choices. - **Repetition / cycles:** The match terminates deterministically at tick T=120. - **Simultaneous claims on the same resource or position:** Pit capacity is strictly 1 stick; if S and Dk contest an open pit simultaneously, resolution order favors the defending holder with probability 0.5. - **Player elimination mid-round; turn order repair:** No player elimination; roles cycle dynamically among all N agents. - **Resource exhaustion:** Exactly K pits and 1 ball; resources are invariant. - **Termination guarantee:** Guaranteed strictly by the fixed-horizon simulation clock t∈[1,120]. ## State representation - **Persistent state:** `scores` (Map[AgentId, Int]), `shepherd_id` (AgentId), `pit_assignments` (Map[NodeId, AgentId]), `tick_counter` (1..120). - **Per-tick state:** `ball_coord` (Coord2D), `stick_planted_flags` (Map[AgentId, Bool]). - **Observable information:** Fully observable state; all pit occupancies, stick postures, and ball positions are public. ## Action space - `drive_ball(target_pit: NodeId)`: Shepherd offensive ball strike. - `steal_pit(target_pit: NodeId)`: Shepherd opportunistic pit conquest. - `guard_pit()`: Defender safe passive hold. - `strike_ball()`: Defender active ball clearance (opens pit to stealing). ## Playability notes - **Single-player-vs-AI:** Highly engaging bluffing and timing duel (human as Shepherd trying to bait AI defenders into swinging, or human as Defender guarding against feints). - **Group games (n>4):** Solved cleanly for 4 to 8 agents on a star topology graph. - **Physical-skill games:** Stick swing speed and reaction latency mapped to Pdeflect and Psteal success probabilities. - **What is lost:** Physical wood-on-wood clatter, body positioning around the pit rim, and vocal shouting. ## Implementation hints Discrete star graph with K outer nodes. The core game logic is a simultaneous matrix game played at each outer node on every tick. First milestone: implement the 4-player star graph with fixed probability resolvers, then tune the Shepherd's strategic utility function between driving the ball and stealing pits.

Download as JSON

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

Download JSON
Cite this page

Piglet (Polish Pastoral Pit-and-Stick Game / Czoromaj) (Poland). (n.d.). Games of Countries. https://gamesofcountries.com/games/pl-poland/swinka

@misc{gamesofcountries-pl-poland-swinka,
  title = {Piglet (Polish Pastoral Pit-and-Stick Game / Czoromaj) (Poland)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/pl-poland/swinka}
}