Formal Specification
Dragon Gate & Tail Snatching / Oray-orayan — Formal Specification
Indonesia · singing-circle · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 4
# Ular Naga — AI-optimized specification
## General idea
A two-phase multi-agent game comprising: (1) a hidden-choice recruitment procession where a moving agent chain passes through a gate and members select secret team affiliations ("Moon" vs "Star"), and (2) a real-time kinematic snake duel where two leaders maneuver across a 2D plane to tag the trailing tail segment of the opposing snake while shielding their own.
## Formal model
- **Abstraction taken:** The singing gate is modeled as a discrete sequential allocation mechanism. The combat duel is modeled on a 2D continuous field where team members follow their leader via kinematic inverse-kinematics (IK) line tracking with fixed inter-segment link distance .
- **Player/agent count:** 2 Leader agents () commanding chains of follower agents.
- **Turn model:** Simultaneous tick execution ().
## Formal rules
R1. Phase 1 — Team Formation:
- follower agents choose sequentially between secret tokens `TEAM_MOON` () and `TEAM_STAR` () with uniform random or policy choice, forming two squads [gap-fill].
R2. Phase 2 — Dragon Duel Setup:
- Leader starts at facing ; followers trail behind at .
- Leader starts at facing ; followers trail behind at .
R3. Kinematic movement:
- Each tick, leaders submit velocity vector with .
- Follower segments update position: segment moves toward segment maintaining rigid distance constraint [gap-fill].
R4. Tagging & collision resolution:
- If Leader reaches within Euclidean distance of the final tail segment , scores a TAG on Team B.
- If Leader reaches within Euclidean distance of , scores a TAG on Team A.
- If a leader collides with an intermediate non-tail segment of the opposing snake, the move is obstructed (elastic bounce) without registering a score [gap-fill].
R5. Win condition: The first team whose leader successfully tags the opposing snake's tail segment wins the match.
R6. Hard time horizon [gap-fill]: If neither tail is tagged by tick (60 s), the team with the longer snake (or smaller minimum distance to enemy tail) wins.
## Edge cases
- Tie at the end condition: If both leaders tag opposing tails on the exact same tick, the duel continues in sudden-death until the next tag.
- A player with no legal move: (remain stationary) is always legal.
- Repetition / cycles: Bounded by finite tick limit ticks.
- Simultaneous claims on the same resource or position: Leaders cannot occupy the same coordinate; elastic repulsion resolves head-to-head collisions.
- Player elimination mid-round: If a tail segment is tagged, the round terminates immediately (terminal state).
- Resource exhaustion: Not applicable.
- Termination guarantee: Enforced by the finite time horizon ticks.
## State representation
- Persistent state:
- `snakes`: array of 2 objects `{leader_id, head_pos: (x, y), body_segments: [(x_1, y_1), ...], status: ACTIVE}`.
- `current_tick`: integer .
- Per-tick ephemeral state:
- `leader_velocities`: `[\vec{v}_A, \vec{v}_B]`.
- Observable information: Fully observable (all positions, chain lengths, and velocities are public).
## Action space
- `move_leader(vx, vy)`: such that .
## Playability notes
- Single-player-vs-AI: Excellent as a dynamic 2D kinematic pursuit-evasion control game where an AI snake leader balances tail offense and body blocking defense.
- Group games (n>4): The multi-child chain is modeled via deterministic inverse-kinematics physics, preserving multi-player spatial dynamics while requiring only 2 active decision agents (the two leaders).
- Physical-skill games: Physical grip holding and spatial dodging are modeled through rigid kinematic link constraints.
- What is lost in the adaptation: The melodic group singing and the giggling chaos of children falling down when the snake whips around rapidly is abstracted into geometric links.
## Implementation hints
Standard inverse kinematics particle chain with verlet integration. First milestone: Implement 1 leader maneuvering a 4-segment trailing snake within a box before adding the opposing AI dragon leader.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Dragon Gate & Tail Snatching / Oray-orayan (Indonesia). (n.d.). Games of Countries. https://gamesofcountries.com/games/id-indonesia/ular-naga
@misc{gamesofcountries-id-indonesia-ular-naga,
title = {Dragon Gate & Tail Snatching / Oray-orayan (Indonesia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/id-indonesia/ular-naga}
}