Formal Specification
Vatican Court Tennis (Pallacorda) — Formal Specification
Vatican City · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Pallacorda vaticana — AI-optimized specification
## General idea
A discretized court tennis simulation modeling Renaissance *pallacorda* (jeu de paume) in the Belvedere Courtyard. Agents exchange shots across a central net cord, scoring via traditional 15-30-45 points and an explicit Chase (*caccia*) floor-marking queue that transfers service and end-court advantages.
## Formal model
- **Abstraction taken:** The 3D geometry of the Renaissance courtyard (walls, penthouse roofs, and stone floor) is discretized into a 2D court grid `[-L, +L] x [-W/2, +W/2]` with wall reflection collision vectors and floor bounce count trackers.
- **Player/agent count:** 2 agents (Server and Receiver).
- **Turn model:** Alternating shot exchanges during active rallies; game and set scoring structure.
## Formal rules
R1. Setup: Court is divided at `x = 0` by the net cord. Service side is `x < 0`, Hazard/receiving side is `x > 0`. Points start at `0-0` (scored as `0 -> 15 -> 30 -> 45 -> Game`).
R2. Active rally execution:
R2.1. Server serves from `x < -L/2` across `x = 0`.
R2.2. On each shot, the active agent selects a landing target `(tx, ty)` and shot spin/power.
R2.3. Ball trajectory and wall rebounds are resolved: landing coordinate `(bx, by)` is sampled.
R2.4. A return is legal if the agent reaches the ball before its 2nd bounce and strikes it over `x = 0` without hitting the cord.
R2.5. If an unreturned ball's 2nd bounce lands in the court, a Chase record `C = (pos_x, pos_y)` is pushed to the Chase Queue `Q_chase`.
R3. Chase resolution:
R3.1. When `|Q_chase| == 2` (or at game point), agents swap court ends (`Server <-> Receiver`).
R3.2. Chases are resolved sequentially: the player defending the chase must ensure their shot's second bounce exceeds the marked distance `C.pos_x`.
R4. Game and set progression:
R4.1. A game is won by the first agent to win a point from 45, or by winning 2 consecutive points from deuce (45-45).
R4.2. A set is won by the first agent to win 6 games with a margin of >= 2 games.
R5. [gap-fill] Match limit: A standard match is best-of-3 sets.
R6. [gap-fill] Tiebreak rule: If games reach 6-6 in the deciding 3rd set, a 7-point tiebreaker is played.
## Edge cases
- Tie at the end condition: Resolved via 2-game set margin or deciding tiebreak (R6).
- A player with no legal move: If an agent cannot reach the ball before bounce 2, a point or chase is awarded; next point initializes cleanly.
- Repetition / cycles: Bounded by finite point progression and best-of-3 set ceiling.
- Simultaneous claims on the same resource or position: Not applicable — ball possession is strictly alternating.
- Player elimination mid-round: Disconnection forfeits the match to the active opponent.
- Resource exhaustion: Not applicable — ball state resets every point.
- Termination guarantee: Guaranteed by the finite hierarchical match structure (points -> games -> sets).
## State representation
- Persistent state: `match_sets` `(int, int)`, `current_set_games` `(int, int)`, `current_game_points` `(int, int)`, `chase_queue` (list of float x-coordinates).
- Per-rally ephemeral state: `ball_pos` `(x,y,z)`, `ball_vel` `(vx,vy,vz)`, `bounce_count` (0..2), `active_striker` (agent_id).
- Observable information: Fully observable by both agents.
## Action space
- `serve(target_x, target_y, power)`: Deliver opening service across the cord.
- `stroke(target_x, target_y, shot_type)`: Execute return (flat, cut, lob, wall-rebound).
## Playability notes
- Single-player-vs-AI: Natural — human player vs. AI navigating Renaissance court angles and chase tactical calculations.
- Group games (n>4): Doubles format supported via 2v2 partner positioning.
- Physical-skill games: Racket control and wall angle calculations parameterized via standard physics samplers.
- What is lost: The distinct acoustic echo of hardwood rackets in Bramante's stone courtyard.
## Implementation hints
Treat as an advanced 2D court state machine with an explicit FIFO queue for `chase` resolution. First milestone: Verify 15-30-45 game-point logic before adding complex wall-rebound chases.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Vatican Court Tennis (Pallacorda) (Vatican City). (n.d.). Games of Countries. https://gamesofcountries.com/games/va-vatican-city/pallacorda-vaticana
@misc{gamesofcountries-va-vatican-city-pallacorda-vaticana,
title = {Vatican Court Tennis (Pallacorda) (Vatican City)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/va-vatican-city/pallacorda-vaticana}
}