Formal Specification
Piglet (Polish Pastoral Pit-and-Stick Game / Czoromaj) — Formal Specification
Poland · stick-team · Confidence: medium
← Back to game pageImplementation 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 perimeter pit nodes arranged symmetrically around central node at radius . 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:** agents (1 Shepherd , Defenders ).
- **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 perimeter pits. Each defender occupies pit with stick planted (`is_planted = True`). Shepherd stands at center node with ball .
R2. **Action selection per tick:**
- Shepherd selects one action:
- `drive_ball(target_pit_k)`: Strike ball toward perimeter pit .
- `steal_pit(target_pit_k)`: Thrust stick toward perimeter pit .
- Each Defender selects one action:
- `guard_pit()`: Keep stick planted inside (`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 executes `drive_ball(v_k)`: Ball reaches .
- If chose `strike_ball()`: Defender strikes the ball away with success probability . Ball rebounds to center .
- If chose `guard_pit()`: Defender cannot bat the ball; ball enters pit with probability .
- **Pit stealing resolution:**
- If executes `steal_pit(v_k)`:
- If has `is_planted == False` (defender lifted stick to strike): Steal succeeds with probability . claims pit , and is dispossessed.
- If has `is_planted == True`: Steal automatically fails.
R4. **Role turnover:**
- If ball successfully enters , or if successfully steals pit :
- Defender becomes the new Shepherd ().
- The former Shepherd takes ownership of pit ().
- Ball resets to center .
R5. [gap-fill] **Scoring and match victory:**
- Each tick an agent successfully retains a perimeter pit, they accumulate defense point.
- The match runs for a fixed duration of 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 .
- **Simultaneous claims on the same resource or position:** Pit capacity is strictly 1 stick; if and contest an open pit simultaneously, resolution order favors the defending holder with probability .
- **Player elimination mid-round; turn order repair:** No player elimination; roles cycle dynamically among all agents.
- **Resource exhaustion:** Exactly pits and 1 ball; resources are invariant.
- **Termination guarantee:** Guaranteed strictly by the fixed-horizon simulation clock .
## 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 and 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 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 JSONCite 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}
}