Skip to main content
Formal Specification

Traditional Hardwood Top Spinning (Uri & Pangkak) — Formal Specification

Indonesia · top-spinning · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Gasing — AI-optimized specification ## General idea A turn-based two-agent duel modeling the tactical striking discipline (*Gasing Pangkak*). One agent establishes a target spin state, while the attacking agent selects an attack profile (power, launch angle, and aim precision) to dislodge or stop the defender's top. Roles alternate until a target match score is reached. ## Formal model - **Abstraction taken:** Gyroscopic physics and physical string-whipping are abstracted into continuous 2D position landing distributions and energy exchange equations: E=12Iω2. - **Player/agent count:** 2 agents (Agent 0 and Agent 1). - **Turn model:** Alternating rounds of discrete sequential decisions (Defender launches, Attacker strikes, collision resolves). ## Formal rules R1. Setup: Arena radius R=2.0 metres. Match target score Starget=5 points. Initial scores S0=0,S1=0. R2. Phase 1 (Defender launch): The defending agent launches a baseline spin with chosen rotational energy parameter Ed∈[50,100]. - Defender landing position: (xd,yd)∼𝒩((0,0),σd2), where σd=0.2 m [gap-fill]. - If xd2+yd2>R, defender mislaunches: Attacker scores 1 point immediately and round resets. R3. Phase 2 (Attacker strike): Attacker observes defender position (xd,yd) and remaining energy Ed(t), then selects strike parameters: - Strike energy: Ea∈[60,120]. - Aim target point: (xaim,yaim). - Actual landing point: (xa,ya)∼𝒩((xaim,yaim),σa2(Ea)), where σa increases with Ea (higher power = less precision) [gap-fill]. R4. Collision resolution: - If distance d((xa,ya),(xd,yd))≤0.15 m (direct hit radius): - Kinetic impact transfers momentum: Defender displacement vector Δp→=k⋅Ea⋅(xd−xa,yd−ya)d. - New defender position: (xd′,yd′)=(xd,yd)+Δp→. - New energies: Ed′=max⁡(0,Ed−γEa), Ea′=Ea⋅(1−restitution). - Scoring: - If (xd′)2+(yd′)2>R (knocked out of ring) and xa2+ya2≤R and Ea′>0: Attacker scores 2 points. - Else if Ed′==0 and Ea′>0: Attacker scores 2 points. - Else if Ea′>Ed′: Attacker scores 1 point. - Else: Defender scores 1 point. - If d>0.15 m (miss): Attacker landing spin decays. If Ea′<Ed, Defender scores 1 point; if Ea′≥Ed, Attacker scores 1 point [gap-fill]. R5. Match end: The first agent to reach S≥Starget wins. If both reach target simultaneously after an even number of rounds, sudden death rounds continue until a point lead is established. ## Edge cases - Tie at the end condition: Sudden-death single-round tiebreakers continue until score differential ≥1. - A player with no legal move: Parameters E∈[50,120] and (x,y)∈[−2,2] always admit valid continuous inputs. - Repetition / cycles: Each round awards at least 1 point to one of the agents (unless a rare void mislaunch occurs, in which case round resets); total score is strictly increasing. - Simultaneous claims on the same resource or position: Handled explicitly by the collision mechanics (attacker lands on/near defender). - Player elimination mid-round: Not applicable; match score accumulator determines winner. - Resource exhaustion: Not applicable. - Termination guarantee: Point accumulation per round is strictly positive, guaranteeing termination within ≤2⋅Starget rounds on average. ## State representation - Persistent state: - `scores`: array of 2 integers [S0,S1]. - `current_round`: integer. - `attacker_id`: 0 or 1. - Per-round ephemeral state: (xd,yd),Ed,(xa,ya),Ea. - Observable information: Fully observable (target coordinates and spin energies are revealed upon landing). ## Action space - Defender: `launch(energy)` with E∈[50.0,100.0]. - Attacker: `strike(target_x, target_y, energy)` with (x,y)∈[−2.0,2.0]2,E∈[60.0,120.0]. ## Playability notes - Single-player-vs-AI: Excellent as an aiming and energy optimization minigame against AI opponents. - Group games (n>4): Teams can compete in aggregate individual duel matches (best of 5). - Physical-skill games: Launch angle, string tension, and wrist flick are parameterized into the σa(E) precision-power tradeoff function. - What is lost in the adaptation: The craft tactile nuances of wood grain, string fraying, and acoustic resonance during spin are omitted. ## Implementation hints Low algorithmic complexity. The collision logic is a standard 2D vector kinematics model. First milestone: Implement R1–R4 with interactive target aiming and test score convergence.

Download as JSON

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

Download JSON
Cite this page

Traditional Hardwood Top Spinning (Uri & Pangkak) (Indonesia). (n.d.). Games of Countries. https://gamesofcountries.com/games/id-indonesia/gasing

@misc{gamesofcountries-id-indonesia-gasing,
  title = {Traditional Hardwood Top Spinning (Uri & Pangkak) (Indonesia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/id-indonesia/gasing}
}