Formal Specification
Between Two Fires — Formal Specification
Slovenia · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Med dvema ognjema — AI-optimized specification
## General idea
A multi-agent team ball game played on a 2D court partitioned into four zones (two main field courts and two flanking rear "fire" zones). Teams pass a single ball across enemy territory to create cross-fire angles, attempting to strike and eliminate opposing field agents while defenders attempt to dodge or execute catch interceptions.
## Formal model
- **Abstraction taken:** Court space is discretized into 4 zones along longitudinal axis m: Fire Zone A , Field Zone B , Field Zone A , Fire Zone B . Ball passes and elimination throws are modeled as parameterized 2D trajectory vectors with stochastic hit, dodge, and catch probabilities.
- **Player/agent count:** 2 teams of agents (, ).
- **Turn model:** Discrete action ticks ( s) with sequential ball possession transitions.
## Formal rules
R1. Setup:
- Team A: Captain in Fire Zone A ; Fielders in Field Zone A .
- Team B: Captain in Fire Zone B ; Fielders in Field Zone B .
- Ball initialized in possession of . Captains have lives.
R2. Ball Carrier Actions:
- Carrier agent can choose:
1. `pass_ball(target_teammate_id)`: High-accuracy pass ().
2. `throw_strike(target_enemy_id)`: High-velocity elimination attempt ( m/s).
R3. Target Defender Reaction:
- Upon strike throw, targeted defender chooses:
- `attempt_dodge()`: Success .
- `attempt_catch()`: Success .
R4. Outcome Resolution:
- If `dodge` succeeds: Ball hits ground; possession passes to defending team.
- If `catch` succeeds: No elimination; defender gains possession. [gap-fill] One previously eliminated teammate is redeemed back into field.
- If hit lands (both dodge and catch fail):
- If is a Fielder: is ELIMINATED from Field and transitions to their team's Fire Zone.
- If is a Captain on field: .
R5. Captain Field Entry:
- When all 3 fielders of Team A are eliminated, Captain enters Field Zone A with remaining lives .
R6. Victory Condition:
- When a team's Captain loses all lives (), that team is ELIMINATED and the opposing team wins.
- [gap-fill] Match time capped at ticks; if cap reached, team with most surviving field players wins.
## Edge cases
- Tie at the end condition: Tied remaining field players at broken by total successful hits landed.
- A player with no legal move: Ball carrier must pass or shoot within ticks.
- Repetition / cycles: Bounded by strictly decreasing player counts and hard tick cap .
- Simultaneous claims on the same resource or position: Ball possession is exclusive to one agent at a time.
- Player elimination mid-round; turn order repair: Eliminated fielder relocates to fire zone; field target set decrements immediately.
- Resource exhaustion: Ball is indestructible; lives are finite.
- Termination guarantee: Monotonically decreasing player and captain life counts guarantee finite termination.
## State representation
- Persistent state: `team_fielders: dict[str, list[int]]`, `team_fire_players: dict[str, list[int]]`, `captain_lives: dict[str, int]`, `captain_on_field: dict[str, bool]`.
- Ephemeral tick state: `ball_carrier_id: int`, `ball_position: tuple[float, float]`, `target_agent_id: Optional[int]`.
- Observable information: Fully observable (all agent coordinates, zone assignments, and ball location are public).
## Action space
- `pass(teammate_id: int)`: Pass action.
- `strike(enemy_id: int)`: Attack throw action.
- `react(action: enum[DODGE, CATCH])`: Defensive response.
## Playability notes
- Single-player-vs-AI: Engine-ready; standard multi-agent spatial coordination (cross-fire angle optimization).
- Group games (n>4): Natively designed for 8 agents (4v4).
- Physical-skill games: Dodge and catch mechanics parameterized via agent speed and reaction latencies.
- What is lost: Physical sting of foam ball impact, diving floor rolls.
## Implementation hints
Discrete zone-based multi-agent state space with clear offensive/defensive phase transitions. First milestone: implement 2v2 (1 captain, 1 fielder per team) with deterministic passing and stochastic catch/dodge checks.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Between Two Fires (Slovenia). (n.d.). Games of Countries. https://gamesofcountries.com/games/si-slovenia/med-dvema-ognjema
@misc{gamesofcountries-si-slovenia-med-dvema-ognjema,
title = {Between Two Fires (Slovenia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/si-slovenia/med-dvema-ognjema}
}