Skip to main content
Formal Specification

Rooster Fight — Formal Specification

Slovenia · wrestling-combat · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Petelinji boj — AI-optimized specification ## General idea A simultaneous-choice 1v1 combat balance simulation where two agents hop within a 2D circular ring in a one-legged stance with crossed arms. Agents select discrete combat postures and bump maneuvers each tick, with physics-based balance degradation, momentum transfer, and boundary checks determining round elimination. ## Formal model - **Abstraction taken:** Physical one-legged jumping and shoulder bumping are abstracted into discrete combat rounds. Each agent maintains a dynamic balance state B∈[0,100] and 2D ring position (x,y) inside circle radius R=1.5 m. - **Player/agent count:** 2 agents (A1,A2). - **Turn model:** Synchronous simultaneous action selection per combat round. ## Formal rules R1. Setup: - Ring defined as ‖(x,y)‖≤1.5 m. Agents start at (−0.8,0) and (0.8,0) with balance B1=100,B2=100. Round target: Best of 3 rounds. R2. Simultaneous Action Choice (per round tick): - Each agent simultaneously selects action from: `LUNGE_BUMP`, `BRACE_ABSORB`, `DODGE_HOP`, `FEINT`. R3. Outcome & Balance Resolution: - Matchup matrix determines momentum vector 𝐯 and balance delta ΔB: - `LUNGE` vs `BRACE`: Lunger incurs ΔB=−15; Bracer takes ΔB=−5, Lunger pushed back. - `LUNGE` vs `DODGE`: Lunger misses, incurs ΔB=−20 and lunges forward Δx=0.6; Dodger takes ΔB=−2. - `LUNGE` vs `LUNGE`: Mutual high impact, ΔB1=−15,ΔB2=−15, displacement away from collision point. - `BRACE` vs `DODGE` / `FEINT`: Minimal interaction, balance recovers ΔB=+5. - [gap-fill] Position update: (x,y)←(x,y)+𝐯. R4. Elimination Conditions (Terminal State for Round): - Agent Ai loses the round immediately if: 1. Boundary Exit: ‖pos(Ai)‖>1.5 m (stepped out of ring). 2. Balance Collapse: Bi≤0 (second foot touches ground / fell). R5. Match Scoring: - Round winner scores 1 point. First agent to achieve 2 round points wins the match. - [gap-fill] Maximum ticks per round Tround=30; if no agent falls, agent with higher remaining balance B wins the round. ## Edge cases - Tie at the end condition: If both agents fall or exit on the exact same tick, [gap-fill] the round is declared a tie and replayed. - A player with no legal move: Not applicable; 4 discrete combat actions are always available. - Repetition / cycles: Bounded by tick timer Tround=30 and strictly bounded round cap. - Simultaneous claims on the same resource or position: Simultaneous selections are resolved symmetrically via collision mechanics. - Player elimination mid-round; turn order repair: Not applicable (1v1 bout). - Resource exhaustion: Ring space is non-consumable; balance resets to 100 at the start of each round. - Termination guarantee: Strict termination guaranteed by finite tick timer Tround and best-of-3 point system. ## State representation - Persistent state: `match_score: tuple[int, int]`, `round_number: int`. - Ephemeral round state: `balance_A1: int`, `balance_A2: int`, `pos_A1: tuple[float, float]`, `pos_A2: tuple[float, float]`, `tick_index: int`. - Observable information: Positions and balance levels are public; current-tick action choices are private until simultaneous reveal. ## Action space - `lunge_bump()`: Charge and bump opponent shoulder. - `brace_absorb()`: Absorb impact with defensive stance. - `dodge_hop()`: Lateral hop evasion. - `feint()`: Deceptive movement to induce opponent slip. ## Playability notes - Single-player-vs-AI: Highly engaging simultaneous game-theoretic duel (rock-paper-scissors with continuous spatial states). - Group games (n>4): Solved via single-elimination tournament bracket of 1v1 bouts. - Physical-skill games: Physical balance and strength abstracted into scalar B and tactical interaction matrix. - What is lost: Physical muscle burn, explosive shoulder collision sensation. ## Implementation hints Discrete simultaneous-move game matrix on 2D circle. First milestone: implement state transitions on balance B before adding spatial 2D coordinates.

Download as JSON

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

Download JSON
Cite this page

Rooster Fight (Slovenia). (n.d.). Games of Countries. https://gamesofcountries.com/games/si-slovenia/petelinji-boj

@misc{gamesofcountries-si-slovenia-petelinji-boj,
  title = {Rooster Fight (Slovenia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/si-slovenia/petelinji-boj}
}