Skip to main content
Formal Specification

Flat Stone Boules — Formal Specification

Bosnia & Herzegovina · dexterity-throw · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Pljočkanje — AI-optimized specification ## General idea A turn-based positional precision throwing game on a 2D plane where agents toss flat stone discs toward an upright target stone (*grota*). Agents choose between gentle placement gliding (*bližanje*) to establish proximate scoring positions or forceful striking (*izbijanje*) to displace opponents' stones or the target itself. The round winner earns points equal to the count of stones closer than the opponent's best stone. ## Formal model - **Abstraction taken:** The 2D playing court is modeled as a continuous plane [0,4.0]×[0,15.0] meters. The target stone starts at coordinates (2.0,12.0). Throws are modeled via 2D normal distributions around declared landing aim points (xaim,yaim) with elastic circle collision resolution for direct hits. - **Player/agent count:** 2 agents (Agent A vs Agent B), 2 stones per agent per round. - **Turn model:** Strictly sequential throws, with turn order within a round dictated by which player is currently furthest from the target stone (*najdalji baca*). ## Formal rules R1. **Setup:** Target score W=13 points. Total match scores SA=0,SB=0. Initial target stone position G=(2.0,12.0). Each agent starts a round with 2 stones. R2. **Round initiation:** The leading agent throws the target stone G into the target zone, then throws their first stone A1. R3. **Turn rotation (Bocce rule):** The opposing agent throws stone B1. Thereafter, the agent whose best stone is currently FURTHEST from G must throw their next remaining stone until they either beat the opponent's closest stone or run out of stones. R4. **Throw execution:** An agent selects action `throw_pljocka(target_x, target_y, mode)`: - `mode == GLIDE` (Bližanje): Low velocity, low dispersion σ=0.25⋅(1.1−precision). Stone slides along vector toward target. - `mode == STRIKE` (Izbijanje): High velocity, moderate dispersion σ=0.45⋅(1.1−precision). On collision with another stone or G, an elastic momentum transfer occurs, displacing the struck object. R5. **Round scoring:** When all 4 stones have been thrown: - Calculate Euclidean distance d(s,G)=‖ps−G‖2 for each resting stone s. - Identify closest stone s∗=arg⁡mins⁡d(s,G), belonging to winning agent Wround. - Let dopp=mins∈Opponent⁡d(s,G). - Score for Wround: Count of own stones with d(s,G)<dopp. - Add points to SWround. Winning agent throws first in next round. R6. **Win condition:** The first agent to achieve score S≥W wins the game. ## Edge cases - **Tie at the end condition:** [gap-fill] If both agents' closest stones are at identical distance to G within measurement tolerance (≤1 mm), no points are awarded, and the round is replayed. - **A player with no legal move:** Not applicable; when stones remain in hand, throwing to coordinates within court bounds is always legal. - **Repetition / cycles:** Points accumulate monotonically (S≥0); at least 1 point is awarded in virtually every non-tied round, bounding total rounds before W=13 is reached. - **Simultaneous claims on the same resource:** Handled by Euclidean distance measurement; ties result in null score for that specific stone pairing. - **Player elimination mid-round / turn order repair:** Not applicable; fixed 2-agent structure. - **Resource exhaustion:** Stones in hand reset to 2 per agent at the start of each new round. - **Termination guarantee:** Each round consumes exactly 4 stone actions. Point accrual ensures match reaches threshold W in finite rounds. ## State representation - **Persistent state:** `score_A: int`, `score_B: int`, `round_number: int`, `lead_agent: AgentID`. - **Per-round ephemeral state:** `grota_pos: (float, float)`, `stones_thrown: List[{id: str, owner: AgentID, pos: (float, float)}]`, `stones_remaining: Dict[AgentID, int]`. - **Observable information:** Fully observable state; all stone positions, target position, and distances are public. ## Action space - `throw_pljocka(target_x: float, target_y: float, mode: Enum{GLIDE, STRIKE})`: Parameters bounded by x∈[0.0,4.0],y∈[0.0,15.0]. ## Playability notes - **Single-player-vs-AI:** Highly natural 1v1 tactical precision contest; AI calculates expected value of gliding for 1 point vs attempting an aggressive strike to clear an opponent's stone. - **Group reduction:** 2v2 pair teams reduce seamlessly to 2 alternating meta-agents without changing the 4-stone round economy. - **Physical-skill games:** Flat stone aerodynamic flutter and ground friction are modeled via 2D bivariate normal noise and linear drag coefficients. - **What is lost:** The micro-texture of natural limestone cleavage, hand-grip friction, and tactile judgment of rock weight are abstracted. ## Implementation hints - Moderate 2D geometric complexity; standard 2D vector math handles distances and collision rebounds easily. - Obvious trap: Forgetting that hitting the grota changes the reference center for distance calculations for all previously thrown stones. - Suggested first milestone: Implement the turn queue and distance scoring with static placements before adding collision physics.

Download as JSON

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

Download JSON
Cite this page

Flat Stone Boules (Bosnia & Herzegovina). (n.d.). Games of Countries. https://gamesofcountries.com/games/ba-bosnia-herzegovina/pljockanje

@misc{gamesofcountries-ba-bosnia-herzegovina-pljockanje,
  title = {Flat Stone Boules (Bosnia & Herzegovina)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ba-bosnia-herzegovina/pljockanje}
}