Skip to main content
Formal Specification

Banner of Siena (Civic Horse Race) — Formal Specification

Italy · equestrian-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Palio di Siena — AI-optimized specification ## General idea A multi-agent racing and coalition sabotage game on a closed 3-lap track with sharp banked turns. Ten agents navigate the delicate trigger mechanics of the start line (*mossa*), manage horse stamina, negotiate inter-district pacts (*partiti*), execute whip strikes (*nerbate*), and model autonomous riderless horse progression (*cavallo scosso*). ## Formal model - **Abstraction taken:** The 339m continuous track of Piazza del Campo is modeled as a 1D spline loop (L=339m, total race distance 1,017m) with discrete high-risk curve hazard zones (*San Martino* and *Il Casato*). Continuous horse locomotion is discretized into 1-second simulation ticks. - **Player/agent count:** 10 competing Contrada agents (9 inside the rope start + 1 *rincorsa* trailing starter). - **Turn model:** Two phases: (1) Simultaneous positioning and strategic *rincorsa* trigger at the start (*La Mossa*); (2) Real-time ticked race phase (Tmax⁡=120 seconds). ## Formal rules R1. State setup: Race length is 3 laps (Dtotal=1,017.0 m). Track has two curve hazard zones per lap: San Martino at x(mod339)∈[80,110] and Casato at x(mod339)∈[280,310]. R2. The Start (*La Mossa*): - 9 Contrada positions between ropes are assigned by random permutation π(1..9). - The 10th agent is assigned as *Rincorsa*. - In each start-tick, the *Rincorsa* agent chooses whether to `charge_start()` or `hold()`. - [gap-fill] When *Rincorsa* charges, the front rope drops: all 10 horses launch with initial velocity determined by their lane spacing and reaction time. R3. Ticked race motion: In each tick t: - Active jockeys choose effort E∈[0,1], target racing line ∈{Inside,Middle,Outside}, and tactical action ∈{WhipSelf,WhipOpponent(target_id),Block(target_id)}. - [gap-fill] Velocity update: v(t+1)=v(t)+α⋅E−drag−fatigue(E). - Distance advances: xi(t+1)=xi(t)+vi(t)Δt. R4. Curve risk and Jockey falls: - When passing through a curve zone at high speed v>vsafe: - [gap-fill] Fall probability is P(fall)=σ(v−vsafeKcurve+whip_impacts_received). - If fall occurs, the jockey is unseated (`jockey_active` = false); the horse transitions to autonomous state (`cavallo_scosso`), continuing to run at slightly reduced baseline speed (β⋅v) without active tactical decisions. R5. Whip combat: A successful whip strike against an adjacent opponent increases their fall probability and reduces their stamina. R6. Crossing the line: The winner is the first horse (with or without jockey) whose position xi≥1,017.0 m. R7. Win condition: The Contrada corresponding to the first horse crossing the finish line wins the silk banner (*Drappellone*). ## Edge cases - Tie at the end condition: Ties at the finish line within distance tolerance δ=0.01m are broken by high-speed photo-finish timestamp; horse's browband position is strictly decisive. - A player with no legal move: In *cavallo scosso* state (fallen jockey), the autonomous horse follows deterministic velocity decay and inside-rail steering with no further agent decisions required. - Repetition / cycles: Bounded strictly by positive velocity and maximum 120-second race clock. - Simultaneous claims on the same resource or position: Track has 3 discrete lateral lanes; lateral lane crowding increases collision risk and velocity drag symmetrically. - Player elimination mid-round; turn order repair: Jockey falls do NOT eliminate the horse; the horse continues running autonomously under R4. - Resource exhaustion (pieces, tokens, space, time): Race concludes unconditionally when the leading horse finishes 3 laps. - Termination guarantee: Velocity remains strictly positive (v>0), guaranteeing that the leading horse reaches 1,017m in under 90 seconds. ## State representation - Persistent state: - `winner_contrada`: string / ID. - Per-race state: - `horses`: array of 10 structs containing distance xi, lane yi, velocity vi, stamina Ei, and `jockey_mounted` boolean. - `mossa_state`: enum ∈{Aligning,Triggered,FalseStart,Running,Finished}. - `race_time`: float. - Observable information: Positions of all 10 horses, jockey mounted status, track curve distances, and elapsed time are public. Private pre-race alliance intentions (*partiti*) are revealed through on-track blocking actions. ## Action space - `trigger_start()`: Rincorsa agent only. - `steer_and_pace(effort: float, lane: str, combat_action: Optional[Tuple[str, int]])`: Mounted jockeys only. ## Playability notes - Single-player-vs-AI: Engine-ready; player controls one Contrada jockey navigating the start, executing whip combat at San Martino, or managing a *cavallo scosso* comeback. - Group games (n>4): Naturally models 10-agent competition. - Physical-skill games: Bareback riding balance, whip combat, and centrifugal curve management are abstracted to kinematic differential equations and hazard fall models. - What is lost in the adaptation: The intense civic passion, the tears of victorious and defeated *contradaioli*, and the sacred blessing of the horse in the district church (*chiesa di contrada*). ## Implementation hints Combine a pre-race alignment coordination game (Mossa) with a 2D multi-agent curve-hazard racing simulator. First milestone: Build the 1D distance-loop racer with curve fall probabilities and *cavallo scosso* autonomous running before implementing complex whip combat and start-line coalition mechanics.

Download as JSON

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

Download JSON
Cite this page

Banner of Siena (Civic Horse Race) (Italy). (n.d.). Games of Countries. https://gamesofcountries.com/games/it-italy/palio-di-siena

@misc{gamesofcountries-it-italy-palio-di-siena,
  title = {Banner of Siena (Civic Horse Race) (Italy)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/it-italy/palio-di-siena}
}