Formal Specification
Rooster Fight — Formal Specification
Slovenia · wrestling-combat · Confidence: low
← Back to game pageImplementation 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 and 2D ring position inside circle radius m.
- **Player/agent count:** 2 agents ().
- **Turn model:** Synchronous simultaneous action selection per combat round.
## Formal rules
R1. Setup:
- Ring defined as m. Agents start at and with balance . 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 :
- `LUNGE` vs `BRACE`: Lunger incurs ; Bracer takes , Lunger pushed back.
- `LUNGE` vs `DODGE`: Lunger misses, incurs and lunges forward ; Dodger takes .
- `LUNGE` vs `LUNGE`: Mutual high impact, , displacement away from collision point.
- `BRACE` vs `DODGE` / `FEINT`: Minimal interaction, balance recovers .
- [gap-fill] Position update: .
R4. Elimination Conditions (Terminal State for Round):
- Agent loses the round immediately if:
1. Boundary Exit: m (stepped out of ring).
2. Balance Collapse: (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 ; if no agent falls, agent with higher remaining balance 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 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 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 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 before adding spatial 2D coordinates.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite 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}
}