Formal Specification
Malaysian Striking Top Duel — Formal Specification
Malaysia · top-spinning · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Gasing Pangkah — AI-optimized specification
## General idea
A two-team asynchronous contest game consisting of a defensive launch phase, an offensive precision-strike phase, and a subsequent rotational endurance evaluation. Offensive agents select aiming coordinates and strike archetypes (smash, side-sweep, or undercut) to knockout or unbalance defending tops, while surviving tops enter an endurance contest resolved via rotational physics and skill parameters.
## Formal model
- **Abstraction taken:** The continuous physical throw, cord-unwinding aerodynamics, and 3D collision physics are modeled via a discrete strike-selection action space mapped to a bivariate normal landing distribution, combined with an empirical impact-damage transfer model.
- **Player/agent count:** 2 teams of 4 agents each (Team A and Team B).
- **Turn model:** Phased sequential within rounds: Phase 1 (Defensive launches) Phase 2 (Offensive strikes) Phase 3 (Endurance resolution).
## Formal rules
R1. Match structure: A match consists of rounds. Teams alternate roles: the defending team deploys in Phase 1; the attacking team throws in Phase 2.
R2. Phase 1 (Defense Launch): Each defending agent selects a placement coordinate within the central target circle . Each deployed top is initialized with angular momentum , where .
R3. Phase 2 (Offensive Strikes): Each attacking agent selects a strike style and target index .
- Strike execution: Throw coordinates are sampled from .
- Contact check: If , collision occurs.
R4. Collision resolution:
- Strike impact transfers kinetic shock .
- If or impact knocks defender outside circle , defending top is knocked out (Score +2 to Attackers).
- If top survives impact, its momentum is reduced: .
- [gap-fill] An attacking top that misses contact entirely retains its own residual momentum and enters the endurance pool.
R5. Phase 3 (Endurance Resolution): For all tops still spinning within , remaining spin duration is calculated as . The team holding the single longest-spinning top scores +1 point.
R6. [gap-fill] Round scoring: Total points per round = (Knockout points) + (Endurance bonus).
R7. Win condition: After completed rounds, the team with the highest aggregate score wins. If scores are equal, team with the highest individual spin duration across the match wins.
## Edge cases
- Tie at the end condition: If aggregate scores are identical after rounds, resolved by comparing the maximum individual spin duration recorded during the match.
- A player with no legal move: Not applicable; all active agents select actions in their designated phase.
- Repetition / cycles: Finite round count () guarantees termination.
- Simultaneous claims on the same resource: Multiple strikers may target the same defending top; attacks resolve sequentially in index order .
- Player elimination mid-round: If all defending tops are knocked out before all 4 strikers throw, remaining strikers execute free endurance spins.
- Resource exhaustion: Fixed inventory of 4 tops per team per round.
- Termination guarantee: Strictly bounded by the round counter .
## State representation
- Persistent state: `team_scores[2]`, `current_round` (1..4), `attacking_team` (0 or 1).
- Per-round state: Array of 4 defender top states `{(x, y), momentum, active_bool}`, array of 4 striker actions.
- Observable information: Full visibility of defender coordinates prior to striker decisions (imperfect execution due to stochastic throw dispersion).
## Action space
- Defender action: `deploy_top(x, y)` where .
- Striker action: `strike_top(target_id, style)` where and .
## Playability notes
- Single-player-vs-AI: Natural; player controls all 4 attacking/defending choices against an AI team optimizing placement and strike selections.
- Group games (n>4): Teams can scale up to 5 agents directly without algorithmic alterations.
- Physical-skill games: Motor throw accuracy is abstracted into Gaussian bivariate noise parameterized by agent accuracy stats.
- What is lost: The intricate hand-feel of whipping the cord and fine gyroscopic balancing is replaced by tactical style selection.
## Implementation hints
Modular architecture: decouple the 2D spatial collision detector from the turn state manager. Suggested first milestone: implement 1v1 duel with single-strike collision logic before scaling to 4v4 team mechanics.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Malaysian Striking Top Duel (Malaysia). (n.d.). Games of Countries. https://gamesofcountries.com/games/my-malaysia/gasing-pangkah
@misc{gamesofcountries-my-malaysia-gasing-pangkah,
title = {Malaysian Striking Top Duel (Malaysia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/my-malaysia/gasing-pangkah}
}