Skip to main content
Formal Specification

Rooster Duel (One-Legged Balance Bout) — Formal Specification

Albania · wrestling-combat · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Lufta e gjelave — AI-optimized specification ## General idea A two-agent physical balance and positional sumo-style contest inside a circular ring. Both agents hop on one leg and simultaneously choose discrete movement, shoulder bump, feint, or brace actions each tick. Collisions transfer momentum and deplete stability until one agent falls or is forced outside the ring boundary. ## Formal model - **Abstraction taken:** The 2D circle is discretized into a bounded coordinate plane with radius `R = 5` grid units centered at `(0, 0)`. Agent stance is modeled via a scalar `balance ∈ [0..100]` and 2D position vector `p = (x, y)`. - **Player/agent count:** 2 agents (`ROOSTER_1`, `ROOSTER_2`). - **Turn model:** Simultaneous tick-based execution (e.g. state ticks of discrete action resolution). ## Formal rules R1. Setup: Ring radius is `R = 5.0`. `ROOSTER_1` starts at `(-2, 0)`, `ROOSTER_2` starts at `(2, 0)`. Both start with `balance = 100.0`. Round counter `round = 1`. R2. Each tick `t`, both agents simultaneously select an action from: - `HOP_MOVE(dx, dy)`: Move up to 1 unit. Balance cost: `2` points. - `SHOULDER_BUMP(target_agent)`: Deliver a forward impulse. Balance cost: `5` points. - `FEINT_RETREAT()`: Quick hop backward; evades incoming bumps with 70% probability. Balance cost: `3` points. - `BRACE_STANCE()`: Reduce incoming displacement by 50%; restore `+5` balance. R3. Collision Resolution: - If both agents attempt `SHOULDER_BUMP` simultaneously: Both agents bounce back `0.8` units; each loses `15` balance points. - If Agent A bumps while Agent B is moving/feinting: Agent B is pushed back `d_push = 1.5 * (balance_A / balance_B)` units and loses `20` balance points; Agent A advances `0.5` units. - If Agent A bumps while Agent B braces: Agent A loses `10` balance points; Agent B is pushed back only `0.4` units and loses `5` balance points. R4. Boundary and Loss Conditions: - If an agent's coordinate exceeds `||p|| > R`: Agent is `OUT_OF_BOUNDS` and loses the round immediately. - If an agent's `balance <= 0`: Agent `FALLS` (second foot touches ground) and loses the round immediately. R5. Match Scoring: The winner of the round scores `+1` point. First agent to reach `2` round wins (best-of-three) wins the match. R6. [gap-fill] Tick limit: If a single round reaches 50 ticks without a fall or ring out, the agent with higher remaining balance wins the round. ## Edge cases - Tie at the end condition: Resolved by R6 balance comparison; if identical, a 10-tick sudden-death round is run. - A player with no legal move: Not applicable; all 4 action primitives are available every tick. - Repetition / cycles: Bounded by R6's 50-tick round cap and persistent balance consumption. - Simultaneous claims on the same resource or position: Resolved symmetrically via R3 collision mechanics. - Player elimination mid-round; turn order repair: Round terminates immediately on fall or ring-out, cleanly initiating next round. - Resource exhaustion (pieces, tokens, space, time): Ring boundary and balance are strictly bounded. - Termination guarantee: why the game provably ends: Guaranteed because every non-brace action expends balance, collisions actively deplete balance, and R6 caps each round at 50 ticks. ## State representation - Persistent state: `match_score: array[2] of int`, `round_num: int`. - Per-turn ephemeral state: `positions: array[2] of (float, float)`, `balance: array[2] of float`, `tick_count: int`. - Observable information: Fully observable by both agents at all times. ## Action space - `act(type: {HOP_MOVE, SHOULDER_BUMP, FEINT_RETREAT, BRACE_STANCE}, params: (float, float))`: Committed simultaneously per tick. ## Playability notes - Single-player-vs-AI: Natural; 1v1 duel against an AI bot with spatial positioning and bumping logic. - Group games (n>4): Can be expanded to King-of-the-Hill free-for-all by adding more agent positions inside a larger radius ring. - Physical-skill games: Real-time leg fatigue and one-legged balance are abstracted into balance point attrition and vector knockbacks. - What is lost in the adaptation: The burning muscle lactic acid in the calves and the chaotic physical momentum of shoulder shocks. ## Implementation hints 2D continuous-coordinate discrete-tick simulation. Branching factor is 4 per tick. First milestone: Implement 2D boundary check, bump collision displacement formula, and balance depletion loop for a single round.

Download as JSON

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

Download JSON
Cite this page

Rooster Duel (One-Legged Balance Bout) (Albania). (n.d.). Games of Countries. https://gamesofcountries.com/games/al-albania/lufta-e-gjelave

@misc{gamesofcountries-al-albania-lufta-e-gjelave,
  title = {Rooster Duel (One-Legged Balance Bout) (Albania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/al-albania/lufta-e-gjelave}
}