Skip to main content
Formal Specification

Porca / Pastoral Stick-and-Hole Game — Formal Specification

Portugal · stick-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 5
# Jogo da Porca — AI-optimized specification ## General idea A multi-agent stick-and-hole territorial game on a star-graph topology. Four peripheral agents defend four outer holes while attempting to strike a central ball away, and one central defender attempts to steer the ball into the central pit or steal an unguarded outer hole, triggering a rapid scramble for safe positions. ## Formal model - **Abstraction taken:** Physical field space is mapped to a discrete star graph `G = (V, E)` with central node `C_0` and peripheral nodes `H_1, H_2, ..., H_{N-1}`. Ball position and agent stick placements occupy discrete nodes. - **Player/agent count:** 5 agents (1 Central Defender, 4 Peripheral Defenders). - **Turn model:** Real-time ticked (simultaneous choice per tick, `dt = 0.5s` [gap-fill]). ## Formal rules R1. Setup: Central node `C_0` with central hole; 4 peripheral nodes `H_1..H_4` arranged in a circle around `C_0`. 5 agents: Agent 0 is `Defender` (at `C_0`), Agents 1..4 occupy `H_1..H_4`. Ball starts at `C_0`. R2. Agent Actions per tick: - Peripheral Agent at `H_i`: can choose `HOLD` (keep stick in hole `H_i`, securing immunity) or `STRIKE_BALL` (leaves `H_i`, moving stick towards ball's current location to drive it away). - Central Defender: can choose `DRIVE_BALL(target_node)` or `STEAL_HOLE(target_hole)`. R3. Ball Mechanics: - If Defender drives ball towards `C_0` and no peripheral agent defends it, ball enters `C_0` in 2 ticks. - If a peripheral agent strikes the ball, the ball is deflected outward to distance zone `D = 2` for 4 ticks [gap-fill]. R4. Hole Stealing Mechanics: - If a peripheral node `H_i` is vacant (agent chose `STRIKE_BALL`) and the Defender executes `STEAL_HOLE(H_i)`, the Defender claims `H_i` with 80% success probability [gap-fill]. - The displaced agent becomes the new Defender. R5. Central Scramble Trigger: - When ball enters `C_0`, a global scramble occurs. All 5 agents simultaneously submit a preference ranking of holes `H_1..H_4`. - Holes are allocated by proximity and randomized priority on ties [gap-fill]. The 1 agent unallocated to any peripheral hole becomes the new Defender and receives 1 penalty point. R6. Win condition: The match ends after 10 scramble rounds. The agent with the minimum cumulative penalty points wins. ## Edge cases - Tie at the end condition: If multiple agents tie with the lowest penalty points, a 3-round playoff is conducted. - A player with no legal move: Not applicable; `HOLD`, `STRIKE`, and `STEAL` are always valid choices. - Repetition / cycles: Scramble counter monotonically increments to 10 rounds, guaranteeing termination. - Simultaneous claims on the same resource or position: When two agents target the same vacant hole `H_i`, priority is given to the agent who was closest, broken by uniform random coin-flip [gap-fill]. - Player elimination mid-round: If an agent disconnects, the number of peripheral holes reduces to `N - 2`, preserving the `N - 1` invariant. - Resource exhaustion (pieces, tokens, space, time): Match concludes at round 10. - Termination guarantee: Bound by finite round cap (10 scrambles) and non-zero probability of scramble triggers per tick. ## State representation - Persistent state: `penalties: [int; 5]`, `scramble_round: int (0..10)`. - Per-tick ephemeral state: `ball_position: Node/Distance`, `agent_locations: [Node; 5]`, `hole_occupancy: [int; 4]` (agent ID or -1 if vacant). - Minimal observable information: Fully observable public state. ## Action space - Peripheral Agent: `action in {HOLD, STRIKE_BALL, RETURN_TO_HOLE}`. - Defender: `action in {DRIVE_BALL, STEAL_HOLE(hole_id)}`. ## Playability notes - Single-player-vs-AI: Natural 1-player adaptation (player controls 1 peripheral agent or the central Defender against 4 heuristic AI agents). - Group games (n>4): Native 5-agent model directly implements the traditional game dynamics. - Physical-skill games: Real-time stick dexterity abstracted into the risk-reward timing of leaving one's hole to hit the ball vs guarding against a steal. - What is lost in the adaptation: The physical stick clattering, trip hazards, and athletic sprints in open dirt. ## Implementation hints Discrete star graph with tick-based updates. Simple state transition logic. Suggested milestone 1: Implement the 5-node star graph with `HOLD`/`STRIKE` actions and verify that leaving a hole allows the Defender to claim it.

Download as JSON

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

Download JSON
Cite this page

Porca / Pastoral Stick-and-Hole Game (Portugal). (n.d.). Games of Countries. https://gamesofcountries.com/games/pt-portugal/jogo-da-porca

@misc{gamesofcountries-pt-portugal-jogo-da-porca,
  title = {Porca / Pastoral Stick-and-Hole Game (Portugal)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/pt-portugal/jogo-da-porca}
}