Skip to main content
Formal Specification

One-Legged Hopping Battle — Formal Specification

Bahrain · chase-tag · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 1
# Al-Qahous — AI-optimized specification ## General idea A single-leg sumo-style combat and balance battle royale in a circular arena. Agents manage kinetic momentum, center-of-mass balance, and shoulder collision angles to force rivals outside the ring boundary or trigger unbalancing slips. ## Formal model - **Abstraction taken:** The 8m circular arena is modeled as a 2D coordinate space centered at `(0, 0)`. Simulation ticks at `0.25s`. Agents possess position, velocity, and a dynamic `balance ∈ [0..100]` state that decays during collisions. - **Player/agent count:** `N` agents (`4 <= N <= 12`). - **Turn model:** Simultaneous real-time ticked execution. ## Formal rules R1. Arena and Stance: - Ring radius `R = 4.0m` centered at `(0, 0)`. - All agents start hopping on one leg (`v_max = 2.5 m/s`). - Initial state: `balance = 100.0`, `stamina = 100.0`. R2. Collision Mechanics: - If `dist(agent_i, agent_j) <= 0.8m` and agents are moving toward each other: - Relative impact force: `F_impact = mass * |vel_i - vel_j|`. - Balance loss: `delta_bal = F_impact * (1.0 - stability_skill)`. [gap-fill] - `balance_i -= delta_bal`, `balance_j -= delta_bal`. - Agents receive opposing repulsive displacement impulses. R3. Fall and Elimination Checks: - If `balance <= 0.0`: Agent falls, eliminated immediately. - If `dist(agent_pos, (0, 0)) > 4.0m`: Agent crosses boundary, eliminated immediately. - If `stamina <= 0.0`: Hopping leg fails, eliminated immediately. R4. Win Condition: - Match continues until exactly 1 agent remains active in the ring. Last surviving agent wins. ## Edge cases - **Tie at the end condition:** If last two agents fall/exit simultaneously, a 1v1 sudden-death rematch is held. - **A player with no legal move:** Hopping agents always possess steering vectors. - **Repetition / cycles:** Monotonic balance decay during collisions guarantees rapid eliminations within 120 seconds. - **Simultaneous claims on position:** Repulsive physical collision impulse prevents co-location. - **Player elimination mid-round:** Eliminated agents are deactivated immediately; remaining agents continue. - **Resource exhaustion:** Balance and stamina deplete monotonically under contact. - **Termination guarantee:** Guaranteed by arena boundary constraints and balance loss. ## State representation - **Persistent state:** - `match_winner: Optional[int]`. - `elimination_order: List[int]`. - **Ephemeral tick state:** - `agent_pos: Array[N] of Vector2D`. - `agent_vel: Array[N] of Vector2D`. - `agent_balance: Array[N] of float`. - `agent_stamina: Array[N] of float`. - `agent_active: Array[N] of bool`. - **Information set:** Perfect information, fully observable. ## Action space - `hop_charge(target_direction: Vector2D, power: float)`: Precondition: agent active, `power ∈ [0.5..1.0]`. - `evade_hop(target_direction: Vector2D)`: Low-power evasive hop. - `brace_impact()`: Reduce balance loss from collision at the expense of zero forward velocity. ## Playability notes - **Single-player-vs-AI:** Highly playable. Player maneuvers around the perimeter, dodging charging AI clusters and opportunistically bumping off-balance rivals out of the ring. - **Group games:** Battle royale scaling up to 12 agents. - **Physical-skill model:** Leg power and shoulder-checking torque are abstracted into 2D collision impulses and balance pools. - **What is lost:** Physical shoulder impact sensations and sand footing grip. ## Implementation hints Simple 2D elastic collision physics with ring boundary clamps. Calibrate balance loss so that a clean charge on an unbraced opponent reliably pushes them across the perimeter.

Download as JSON

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

Download JSON
Cite this page

One-Legged Hopping Battle (Bahrain). (n.d.). Games of Countries. https://gamesofcountries.com/games/bh-bahrain/al-qahous

@misc{gamesofcountries-bh-bahrain-al-qahous,
  title = {One-Legged Hopping Battle (Bahrain)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/bh-bahrain/al-qahous}
}