Formal Specification
Malay Top Spinning — Formal Specification
Singapore · top-spinning · Confidence: high
← Back to game pageImplementation 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 , a 2D landing coordinate , 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 (or first to 5 points). Roles swap every round.
R2. Phase 1 — Defender Launch:
- The Defender selects launch power and target landing location within a ring of radius metres.
- Defender top achieves initial rotational momentum .
R3. Phase 2 — Attacker Launch:
- The Attacker observes and chooses attack vector .
- Attacker top landing position , where scaled inversely by .
- Attacker initial momentum .
R4. Collision & Impact Resolution:
- If landing distance metres, a direct strike (*pangkah*) occurs:
- Impact energy .
- Defender displacement is computed. If , 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 ().
- If Defender topples and Attacker continues spinning (), 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 rounds) wins.
## Edge cases
- Tie at the end condition: If scores are tied after 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 .
- 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 and point accumulation.
## State representation
- Persistent state:
- `scores`: array of size 2 (integers ).
- `current_round`: integer .
- `active_attacker`: integer .
- Ephemeral state:
- `def_pos`: 2D coordinate .
- `def_momentum`: float .
- `atk_momentum`: float .
- 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 JSONCite 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}
}