Formal Specification
Traditional Peg-Top — Formal Specification
Italy · top-spinning · Confidence: low
← Back to game pageImplementation 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 and landing coordinate . Collisions with target tops are resolved via 2D rigid-body elastic impact formulas.
- **Player/agent count:** 2 agents in 1v1 duel mode (or 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 centered at . Target winning score is points.
R2. In *All'Appuzzato* duel mode:
- One agent is designated the Defender (target top resting at with 0 velocity).
- The Attacking agent selects launch parameters: .
R3. Launch resolution:
- [gap-fill] Landing location .
- Initial spin duration: .
- If lands outside radius or , the launch is a dud (*tiritèppete*): Attacker becomes the new stationary Defender.
R4. Collision mechanics:
- If the spinning top impacts the stationary top ():
- [gap-fill] Momentum transfer pushes target top by distance .
- If Defender top is pushed outside ring (), Attacker scores 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 agents launch simultaneously. The agent with highest scores 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 .
- `current_attacker_id`: agent ID.
- `round_count`: integer.
- Per-round state:
- `target_top_pos`: 2D vector .
- `attacker_landing`: 2D vector .
- `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: , .
## 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 .
- 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 JSONCite 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}
}