Formal Specification
Ampali (Lefkadian Wooden Boules) — Formal Specification
Greece · dexterity-throw · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Ampali — AI-optimized specification
## General idea
A discrete, frame-based target bowling and aerial knocking game on a 2D rectangular corridor. Agents take sequential throws aiming large wooden boules at a smaller target jack (balino). The game models two distinct tactical choices: continuous low-risk rolling toward the target, and high-risk lofted aerial strikes designed to blast opposing boules out of scoring contention.
## Formal model
- **Abstraction taken:** Court modeled as a continuous 2D plane (m, m). Ball rolling and aerial impacts are discretized into stochastic 2D landing coordinates with 2D Gaussian dispersion and standard 2D rigid-body elastic displacement upon impact.
- **Player/agent count:** 2 teams (Team 0 and Team 1), 2 agents per team; each team controls 4 total boules per frame.
- **Turn model:** Dynamic sequential turn order per frame governed by the standard boules priority rule (the team furthest from target must throw next).
## Formal rules
R1. Frame Setup:
- Target *balino* coordinate sampled uniformly from .
- Team 0 boule pool ; Team 1 boule pool .
- Played boules list .
R2. Throw Action Selection:
- Active agent chooses throw type , aim target coordinate , and power .
- **Roll Execution:**
- Landing point: , where .
- **Smash Execution:**
- Landing point: ().
- If landing point is within collision threshold m of an existing boule :
- Target boule is displaced along impact vector by distance .
R3. Dynamic Priority / Next Throw:
- Compute best distance to balino: , .
- If and : Team 1 throws next.
- If and : Team 0 throws next.
- If a team has 0 boules remaining, the other team throws all remaining boules consecutively.
R4. Frame Scoring:
- Once and :
- Identify winning team possessing the minimum distance .
- Let .
- Points scored by team : Count of boules satisfying .
- `match_score[W] += points`.
R5. Win Condition:
- First team whose `match_score` reaches or exceeds 11 points wins the match.
R6. [gap-fill] Boundary Out-of-Bounds: Any boule whose coordinates exceed court boundaries () is marked `dead` and removed from scoring calculations for that frame.
## Edge cases
- Tie at the end condition: If both teams' closest boules are at identical distances within measurement precision (m), [gap-fill] the frame is declared void (0 points awarded to both teams) and re-played.
- A player with no legal move: Not applicable — throwing action is always available while pool .
- Repetition / cycles: Bounded — each throw strictly decrements the finite boule pool ; each frame terminates in exactly 8 throws.
- Simultaneous claims on the same resource or position: Handled by continuous Euclidean coordinate representations and rigid-body impact displacement.
- Player elimination mid-round; turn order repair: Not applicable (no eliminations; boules rotate among team members).
- Resource exhaustion: Exactly 8 boules per frame; match score accumulates monotonically toward 11.
- Termination guarantee: Non-zero expected points per frame () ensures finite frames to reach 11 points.
## State representation
- Persistent state:
- `match_score`: Array of 2 integers `[score_0, score_1]`.
- `frame_number`: Integer counter.
- Per-frame state:
- `balino_pos`: `(x, y)`.
- `boules`: List of structs `[team_id, x, y, is_active]`.
- `boules_remaining`: Array of 2 integers `[b0, b1]`.
- Observable information: Fully observable.
## Action space
- `throw_boule(throw_type, target_x, target_y, power)`:
- `throw_type`: .
- `target_x, target_y`: Floats within court limits.
- `power`: Float .
## Playability notes
- Single-player-vs-AI: Engine-ready. Excellent decision-making challenge balancing tactical rolling (pointing) against offensive aerial smashing (shooting).
- Group games (n>4): Extends naturally to 2v2 (2 boules per player) or 3v3 (2 boules per player).
- Physical-skill games: Physical arm release and gravel roll dynamics converted into stochastic landing distributions.
- What is lost: Sensory feel of heavy seasoned olive wood, sound of clashing boules, and kafenion wine debates.
## Implementation hints
- Implement as a sequential turn loop parameterized by the dynamic priority rule R3.
- AI state evaluation requires computing Voronoi / distance rankings from the balino coordinate.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Ampali (Lefkadian Wooden Boules) (Greece). (n.d.). Games of Countries. https://gamesofcountries.com/games/gr-greece/ampali
@misc{gamesofcountries-gr-greece-ampali,
title = {Ampali (Lefkadian Wooden Boules) (Greece)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/gr-greece/ampali}
}