Skip to main content
Formal Specification

Border Dodgeball — Formal Specification

Croatia · ball-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 2
# Graničar — AI-optimized specification ## General idea A multi-agent team ball game on a 2D court partitioned into four zones (two main inner courts and two outer border 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 X∈[−12,12] m: Outer Zone A [−12,−9], Inner Court B [−9,0], Inner Court A [0,9], Outer Zone B [9,12]. 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 M=4 agents (TA={CA,FA1,FA2,FA3}, TB={CB,FB1,FB2,FB3}). - **Turn model:** Discrete action ticks (Δt=0.5 s) with sequential ball possession transitions. ## Formal rules R1. Setup: - Team A: Captain CA in Outer Zone A [−12,−9]; Fielders FA1…3 in Inner Court A [0,9]. - Team B: Captain CB in Outer Zone B [9,12]; Fielders FB1…3 in Inner Court B [−9,0]. - Ball initialized with FA1. Captains have Lcap=2 lives. R2. Ball Carrier Actions: - Carrier agent can choose: 1. `pass_ball(target_teammate_id)`: High-accuracy pass (Ppass≈0.95). 2. `throw_strike(target_enemy_id)`: High-velocity elimination attempt (vball≈18 m/s). R3. Target Defender Reaction: - Upon strike throw, targeted defender D chooses: - `attempt_dodge()`: Success Pdodge=f(agilityD,dist)≈0.60. - `attempt_catch()`: Success Pcatch=f(dexterityD,dist)≈0.35. 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 inner court. - If hit lands (both dodge and catch fail): - If D is a Fielder: D is ELIMINATED from Inner Court and transitions to their team's Outer Zone. - If D is a Captain on field: Lcap←Lcap−1. R5. Captain Field Entry: - When all 3 fielders of Team A are eliminated, Captain CA enters Inner Court A with remaining lives Lcap. R6. Victory Condition: - When a team's Captain loses all lives (Lcap==0), that team is ELIMINATED and the opposing team wins. - [gap-fill] Match time capped at Tmax=200 ticks; if cap reached, team with most surviving inner court players wins. ## Edge cases - Tie at the end condition: Tied remaining field players at Tmax broken by total successful hits landed. - A player with no legal move: Ball carrier must pass or shoot within Thold=5 ticks. - Repetition / cycles: Bounded by strictly decreasing player counts and hard tick cap Tmax. - 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 outer zone; field target set decrements immediately. - Resource exhaustion: Ball is indestructible; lives Lcap 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_outer_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 JSON
Cite this page

Border Dodgeball (Croatia). (n.d.). Games of Countries. https://gamesofcountries.com/games/hr-croatia/granicar

@misc{gamesofcountries-hr-croatia-granicar,
  title = {Border Dodgeball (Croatia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hr-croatia/granicar}
}