Skip to main content
Formal Specification

Flat Tile Pitching Game — Formal Specification

Tunisia · dexterity-throw · Confidence: medium

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Chqaf — AI-optimized specification ## General idea A turn-based precision target pitching game. Agents pitch flat ceramic tiles from a baseline toward a target marker at distance `D = 6.0m`. Points are awarded for proximity and direct target strikes, with a cap of 10 points deciding the match. ## Formal model - **Abstraction taken:** Underhand tile pitch trajectory and slide deceleration are modeled on a 2D plane with landing coordinates `(x, y) ~ Normal((0, D), sigma(Skill, Power))`. - **Player/agent count:** `N` agents (default `N = 2`, Player 0 and Player 1). - **Turn model:** Sequential pitching rounds across a maximum of 10 rounds. ## Formal rules R1. Setup: Target marker positioned at `(0, 6.0m)`. Each agent starts with `Score = 0`. Match round tracker `Round = 1`. R2. Pitching Action: - Active agent selects `aim_power in [0.8, 1.2]` and `aim_angle_offset in [-0.2, +0.2]`. - Landing coordinates: `(x_land, y_land) = (aim_angle_offset * 6.0, aim_power * 6.0) + (Noise_x, Noise_y)`. R3. Distance Calculation & Scoring: - Distance to target: `Dist = sqrt(x_land^2 + (y_land - 6.0)^2)`. - Direct Strike: If `Dist <= 0.10m` (target radius), agent scores `+3 points`. - On-Target Cover (Rkoub): If `Dist <= 0.03m`, agent scores `+5 points` (instant round sweep). - Proximity Scoring: If no direct strike occurs, the agent with the lowest `Dist` in the round scores `+1 point`. R4. Turn Transition: Both agents pitch once per round; round score updates and next round begins. R5. Win Condition: The first agent to reach `TargetScore = 10` points wins. ## Edge cases - Tie at the end condition: [gap-fill] If both agents reach >= 10 points in the same round with equal scores, a sudden-death single pitch closest to target decides the winner. - A player with no legal move: Not applicable; pitch parameters are always valid. - Repetition / cycles: Bounded strictly by 10 rounds or point attainment. - Simultaneous claims on the same resource or position: Sequential pitch resolution. - Player elimination mid-round; turn order repair: Not applicable; 2-player format. - Resource exhaustion: Monotonically increasing score toward 10 points. - Termination guarantee: Enforced by positive expected points per round and 10-round cap. ## State representation - Persistent state: `scores: Array[N][int]`, `round_num: int in [1..10]`, `active_player: int in [0..N-1]`. - Ephemeral state: `pitched_positions: Array[N][(float, float)]`. - Observability: Complete, perfect public information. ## Action space - `pitch_tile(power, angle)` where `power in [0.8, 1.2]`, `angle in [-0.2, 0.2]`. ## Playability notes - Single-player-vs-AI: Playable as a target aiming challenge against an adaptive AI competitor. - Group games (n>4): Extends smoothly to multi-agent round-robin pitching. - Physical-skill games: Underhand tile aerodynamics and sand slide friction parameterized cleanly. - What is lost: The sound of ceramic fragments skimming smoothly across sea sand. ## Implementation hints 2D coordinate distance state machine. First milestone: implement Euclidean distance scoring from simulated landing coordinates before tuning stochastic noise distributions.

Download as JSON

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

Download JSON
Cite this page

Flat Tile Pitching Game (Tunisia). (n.d.). Games of Countries. https://gamesofcountries.com/games/tn-tunisia/chqaf

@misc{gamesofcountries-tn-tunisia-chqaf,
  title = {Flat Tile Pitching Game (Tunisia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/tn-tunisia/chqaf}
}