Skip to main content
Formal Specification

Malay Top Spinning — Formal Specification

Singapore · top-spinning · Confidence: high

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Gasing Melayu — AI-optimized specification ## General idea Gasing Melayu (modeled on the competitive *Pangkah* striking format) is an asymmetric turn-based duel where a Defender launches a spinning top into a ring to establish stationary spinning endurance, and an Attacker launches an intercepting top to strike, displace, or shatter the defender while preserving their own rotational momentum. ## Formal model - **Abstraction taken:** The high-speed 3D aerodynamics, precession physics, and gyroscopic collisions of hardwood tops are abstracted into an angular momentum state L∈ℝ+, a 2D landing coordinate p→∈ℝ2, and an impact collision resolver parameterized by throwing accuracy and attack angle. - **Player/agent count:** Exactly 2 agents (alternating roles as Defender and Attacker). - **Turn model:** Round-based, with sequential launches within each round. ## Formal rules R1. Match Structure: The match is played over an even number of rounds Rmax⁡=6 (or first to 5 points). Roles swap every round. R2. Phase 1 — Defender Launch: - The Defender selects launch power Pdef∈[0.5,1.0] and target landing location p→def within a ring of radius R=1.5 metres. - Defender top achieves initial rotational momentum Ldef=Pdef×skilldef×100. R3. Phase 2 — Attacker Launch: - The Attacker observes p→def and chooses attack vector (θatk,Patk). - Attacker top landing position p→atk=p→def+ϵ→, where ‖ϵ→‖∼Rayleigh(σ) scaled inversely by skillatk. - Attacker initial momentum Latk=Patk×skillatk×100. R4. Collision & Impact Resolution: - If landing distance ‖p→atk−p→def‖≤Dhit=0.25 metres, a direct strike (*pangkah*) occurs: - Impact energy Eimpact=12(Latk+Ldef). - Defender displacement Δp→def is computed. If ‖p→def+Δp→def‖>R, the defender suffers a Ring Out (+3 points to Attacker). - If the defender remains in the ring, a stability check determines if the defender top topples (Ptopple=clamp(0.1,0.9,Eimpact/Ldef)). - If Defender topples and Attacker continues spinning (Latk>0), Attacker scores +2 points. - If Attacker misses or topples upon impact while Defender spins, Defender scores +1 point. R5. Role Rotation: After each round, points are recorded, and roles swap for the next round. R6. Win Condition: The first agent to reach 5 points (or the agent with higher points after Rmax⁡ rounds) wins. ## Edge cases - Tie at the end condition: If scores are tied after Rmax⁡ rounds, a single sudden-death *Gasing Uri* (pure spin duration comparison) determines the winner [gap-fill]. - A player with no legal move: Not applicable; both roles have defined launch parameters. - Repetition / cycles: Bounded by the finite round limit Rmax⁡=6. - Simultaneous claims on the same resource or position: Defender launches first, establishing position; Attacker launches conditionally on the Defender's position. - Player elimination mid-round: Round concludes immediately upon impact evaluation or toppling. - Resource exhaustion: Not applicable; 1 top per player. - Termination guarantee: Guaranteed by round cap Rmax⁡ and point accumulation. ## State representation - Persistent state: - `scores`: array of size 2 (integers ≥0). - `current_round`: integer 1..Rmax⁡. - `active_attacker`: integer ∈{1,2}. - Ephemeral state: - `def_pos`: 2D coordinate ∈ℝ2. - `def_momentum`: float Ldef≥0. - `atk_momentum`: float Latk≥0. - Observable information: Fully observable to both agents. ## Action space - Defender: `launch_def(power, target_pos)`. - Attacker: `launch_atk(power, aim_angle)`. ## Playability notes - Single-player-vs-AI: Natural and engaging; AI balances strike power against accuracy risk. - Group games (n>4): Adaptable to team brackets (Uri squad vs. Pangkah squad). - Physical-skill games: Cord-wrapping and whipping mechanics are mapped to the scalar power and accuracy distributions. - What is lost: Physical hum/whistle of spinning hardwood, surface friction nuances, and wooden cleavage dynamics. ## Implementation hints Lightweight state machine. The collision formula can be easily parametrized and unit-tested without complex continuous simulation engines.

Download as JSON

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

Download JSON
Cite this page

Malay Top Spinning (Singapore). (n.d.). Games of Countries. https://gamesofcountries.com/games/sg-singapore/gasing-singapore

@misc{gamesofcountries-sg-singapore-gasing-singapore,
  title = {Malay Top Spinning (Singapore)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/sg-singapore/gasing-singapore}
}