Skip to main content
Formal Specification

Traditional Peg-Top — Formal Specification

Italy · top-spinning · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Strùmmolo — AI-optimized specification ## General idea A turn-based and simultaneous top-spinning precision combat game played in a 2D circular ring. Agents launch spinning gyroscopic tops parameterized by launch torque, aim angle, and flight duration, competing to achieve maximum sustained spin or execute ballistic point-strikes against stationary target tops (*all'appuzzato*). ## Formal model - **Abstraction taken:** The continuous physical cord-snapping and gyroscopic precession of a wooden peg-top are abstracted into a 2D impact-and-spin model. Each launch yields an initial spin angular momentum ω0 and landing coordinate (x,y). Collisions with target tops are resolved via 2D rigid-body elastic impact formulas. - **Player/agent count:** 2 agents in 1v1 duel mode (or N agents in endurance arena mode). - **Turn model:** Sequential turns in *Appuzzato* mode (Attacker vs Target); simultaneous launches in *Durata* mode. ## Formal rules R1. Arena setup: Circular ring with radius R=1.0 m centered at (0,0). Target winning score is T=10 points. R2. In *All'Appuzzato* duel mode: - One agent is designated the Defender (target top resting at (0,0) with 0 velocity). - The Attacking agent selects launch parameters: (aim (xt,yt),force F∈[0,1]). R3. Launch resolution: - [gap-fill] Landing location (x,y)∼𝒩((xt,yt),σlaunch2). - Initial spin duration: τspin=F⋅τmax⁡+ϵ. - If (x,y) lands outside radius R or τspin≤0, the launch is a dud (*tiritèppete*): Attacker becomes the new stationary Defender. R4. Collision mechanics: - If the spinning top impacts the stationary top (‖(x,y)‖≤2rtop): - [gap-fill] Momentum transfer pushes target top by distance Δd=κ⋅F. - If Defender top is pushed outside ring (‖𝐩def‖>R), Attacker scores +1 point and Defender remains target for next round. - If Defender top remains inside ring, Attacker becomes the new stationary Defender. R5. Spin duration contest mode: All N agents launch simultaneously. The agent with highest τspin scores +1 point. R6. Turn transition: Roles swap based on the success/failure conditions in R4. R7. Win condition: The first agent to accumulate 10 points wins the match. ## Edge cases - Tie at the end condition: Ties at 10-10 trigger a sudden-death single-launch duration duel. - A player with no legal move: Not applicable; launch parameters are continuous and always selectable. - Repetition / cycles: Bounded because successful attacks generate positive point increments; [gap-fill] a 50-round safety cap forces a sudden-death tiebreaker if players repeatedly fail strikes. - Simultaneous claims on the same resource or position: In duration mode, landing collisions are resolved via 2D repulsion vectors; turns in duel mode are strictly sequential. - Player elimination mid-round; turn order repair: In multi-player matches, an eliminated player is removed from the rotation queue; queue indices contract seamlessly. - Resource exhaustion (pieces, tokens, space, time): Single top per agent; score increments toward 10. - Termination guarantee: Monotonic score progression and bounded round limits guarantee termination. ## State representation - Persistent state: - `score_a`, `score_b`: integers ∈[0,10]. - `current_attacker_id`: agent ID. - `round_count`: integer. - Per-round state: - `target_top_pos`: 2D vector (x,y). - `attacker_landing`: 2D vector (x,y). - `active_spin_duration`: float. - Observable information: Ring boundaries, target top coordinates, and current scores are fully observable. ## Action space - `launch_top(target_x: float, target_y: float, force: float)`: - Preconditions: x2+y2≤R, F∈[0.0,1.0]. ## Playability notes - Single-player-vs-AI: Engine-ready; AI optimizes launch trajectory to maximize collision cross-section with stationary targets. - Group games (n>4): Adaptable to multi-player round-robin or battle-royale ring formats. - Physical-skill games: String winding tension and wrist snap are parameterized into execution variance σ2. - What is lost in the adaptation: The resonant humming sound of the spinning wood (*'o fischio dello strùmmolo*) and the physical damage to split wooden tops. ## Implementation hints Lightweight 2D kinematic circle-intersection physics engine. First milestone: Build the 1v1 *All'Appuzzato* state machine with landing scatter and ring boundary detection.

Download as JSON

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

Download JSON
Cite this page

Traditional Peg-Top (Italy). (n.d.). Games of Countries. https://gamesofcountries.com/games/it-italy/strummolo

@misc{gamesofcountries-it-italy-strummolo,
  title = {Traditional Peg-Top (Italy)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/it-italy/strummolo}
}