Formal Specification
Dodgeball — Formal Specification
Brazil · ball-team · Confidence: high
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Queimada — AI-optimized specification
## General idea
Two teams face each other across a dividing line and eliminate opponents by hitting them with a thrown ball. What makes it structurally distinct from generic dodgeball is the *cemitério*: eliminated players are not removed from the board but relocated behind the opposing team, where they keep throwing — so elimination redistributes attacking geometry rather than simply shrinking a team.
## Formal model
- **Abstraction taken:** the continuous field becomes a discrete grid of cells, and a throw becomes a targeted action resolved by a hit probability rather than a simulated trajectory. Dodging is a per-target evasion parameter, not a physical motion.
- **Player/agent count:** two teams, 6–10 agents each, equal at setup.
- **Turn model:** sequential by ball possession. Only the agent holding the ball acts; all others hold position until the throw resolves.
## Formal rules
R1. The field is a grid split by a centre line into two equal zones, with a *cemitério* strip behind each team's back line.
R2. Starting possession is decided by an odd/even call between two nominated players.
R3. On its turn the ball-holder chooses exactly one action: `throw(target)` at an opposing live player, or `pass(teammate)`.
R4. A throw resolves as a hit with probability `p_hit(thrower_skill, target_evasion, distance)`. [gap-fill] The sources give no accuracy model; any monotonic function decreasing in distance and target evasion satisfies the attested rule that closer throws hit more often.
R5. A hit on the torso, arms or legs eliminates the target, who moves to the cemitério behind the opposing team and may thereafter throw at opponents from behind.
R6. A ball that touches the ground before reaching the target does not eliminate. Possession passes to the nearest player of the team the ball landed among.
R7. [gap-fill] A caught throw (ball held cleanly before bouncing) returns possession to the catching team and does not eliminate. The entry marks catch-handling undocumented; this is the most common attested variant and is tagged so it can be stripped.
R8. [gap-fill] Head hits do not eliminate and return possession, reflecting the injury-risk flag on the entry rather than a sourced rule.
R9. A team loses when it has no live players in its own zone. The other team wins. There is no draw.
## Edge cases
- **Tie at the end condition:** not reachable. R9 is asymmetric — exactly one team empties first, because a single throw eliminates at most one player.
- **Player with no legal move:** impossible for the acting agent; the ball-holder can always throw at some live opponent, and if none exist R9 has already fired.
- **Repetition / cycles:** possession can cycle indefinitely through misses and passes. [gap-fill] Loop-breaking rule: a throw must be attempted at least once every three possessions per team; a team exceeding this forfeits possession.
- **Simultaneous claims:** only one agent acts at a time, so no contention. A loose ball equidistant between two players is awarded to the one with lower agent index.
- **Mid-round elimination and turn-order repair:** the eliminated agent is removed from its team's live list and appended to its cemitério list; turn order is derived from possession, not a rotating index, so no repair is needed.
- **Resource exhaustion:** the only resource is live players, and its exhaustion is the win condition.
- **Termination guarantee:** with R9 plus the R4 throw requirement, every three possessions produce at least one throw with a strictly positive hit probability, so the expected number of live players is strictly decreasing and the game ends with probability 1.
## State representation
Persistent: grid dimensions, centre line, the two cemitério strips.
Per-player: team, cell, `alive|cemiterio`, evasion parameter, throw-skill parameter.
Per-turn ephemeral: ball position, ball holder, possessions-since-last-throw counter per team.
Information set: fully observable. Every agent sees all positions and the ball. Nothing is hidden.
## Action space
- `throw(target_player_id)` — precondition: actor holds the ball; target is on the opposing team and `alive` or in the actor's reachable cemitério arc.
- `pass(teammate_id)` — precondition: actor holds the ball; teammate is on the same team and alive or in the cemitério.
- `move(cell)` — precondition: actor does not hold the ball; cell is adjacent, unoccupied, and inside the actor's own zone or cemitério strip.
## Playability notes
- **Single-player-vs-AI:** natural. One agent controls a whole team; the opposing team is a scripted or learned policy.
- **Group games (n>2):** already two-sided. To reduce to a 2-agent form, treat each team as one agent choosing a joint action; this preserves the game because the interesting choice is target selection, which is a team-level decision.
- **Physical-skill model:** one Bernoulli check per throw, parameterised by distance and target evasion. Nothing else is physical.
- **What is lost:** the ball's flight and the readable moment before a throw when a target commits to a dodge. The spec compresses that whole exchange into one probability, so bluffing a throw direction — which real players do constantly — has no representation.
## Implementation hints
Model the cemitério as part of the board from the start rather than bolting it on; it is the feature that distinguishes this game and it changes throw geometry, since eliminated players attack from the far side. Branching factor is bounded by the number of live opponents plus teammates, so it stays small — typically under 20. First milestone: two teams, throws only, no passing, and confirm the game terminates.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Dodgeball (Brazil). (n.d.). Games of Countries. https://gamesofcountries.com/games/br-brazil/queimada
@misc{gamesofcountries-br-brazil-queimada,
title = {Dodgeball (Brazil)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/br-brazil/queimada}
}