Formal Specification
Portuguese Dodgeball / Jogo da Queimada — Formal Specification
Portugal · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 5
# Queimada Portuguesa — AI-optimized specification
## General idea
A two-team discrete ball game played on a 4-zone linear court: Cemetery B | Main Court A | Main Court B | Cemetery A. Teams alternate ball possession, choosing whether to throw directly at opposing players to burn them or pass to teammates in the cemetery to set up rear flanking attacks. Clean catches allow players to resurrect teammates from the cemetery.
## Formal model
- **Abstraction taken:** The continuous dodgeball court is discretized into 4 zones: `[Cem_B (Zone 0), Main_A (Zone 1), Main_B (Zone 2), Cem_A (Zone 3)]`. Ball throwing accuracy and catch probabilities are modeled via discrete success thresholds.
- **Player/agent count:** 6 agents (Team A: A1, A2, A3; Team B: B1, B2, B3).
- **Turn model:** Alternating ball-possession turns.
## Formal rules
R1. Setup: 4 zones: `Z_0 = Cem_B`, `Z_1 = Main_A`, `Z_2 = Main_B`, `Z_3 = Cem_A`.
- Initial placement: A1, A2 in `Z_1`; A3 (Coveiro A) in `Z_0`. B1, B2 in `Z_2`; B3 (Coveiro B) in `Z_3`.
- Ball starts with Team A in `Z_1`.
R2. On a turn, the possessing team chooses one action:
- `PASS(target_zone)`: Pass ball between Main Court and Cemetery. Pass success probability = 0.95 [gap-fill].
- `ATTACK(target_agent_id)`: Throw ball to eliminate an opponent in the adjacent enemy main court.
R3. Attack Resolution:
- Base hit probability `P(hit) = 0.65` [gap-fill].
- Defender choice: The targeted defender chooses a reaction mode: `EVADE` or `ATTEMPT_CATCH`.
- If `EVADE`: Hit chance reduces to 0.40. If hit, defender is burned and moves to their team's cemetery. If misses, ball possession transfers to defending team in that zone.
- If `ATTEMPT_CATCH`: Catch probability `P(catch) = 0.50` [gap-fill].
- If catch succeeds: Defender is safe; ball remains in defending team's possession; defending team immediately resurrects 1 player from their cemetery back to main court (if any are dead).
- If catch fails: Defender is burned and sent to their cemetery; ball transfers to defending team's cemetery.
R4. Coveiro Entry (*Entrada do Coveiro*):
- When all players of a team in their main court are eliminated, their Coveiro moves from the cemetery into the main court, equipped with 3 lives (`lives = 3` [gap-fill]).
- Each subsequent burn against the Coveiro decrements 1 life.
R5. Win condition: A team wins immediately when all opposing players in the main court (including the Coveiro with 0 lives) are eliminated.
## Edge cases
- Tie at the end condition: First team to eliminate all opponents wins; turns are sequential, so simultaneous elimination cannot occur.
- A player with no legal move: Not applicable; `PASS` or `ATTACK` is always available to the possessing team.
- Repetition / cycles: Bounded by max 60 ball-possession turns [gap-fill]. If turn limit is reached, team with more surviving main-court lives wins.
- Simultaneous claims on the same resource or position: Turns and possession transfers are strictly sequential.
- Player elimination mid-round: When an agent is burned, they are moved to the cemetery zone and remain active as a cemetery thrower.
- Resource exhaustion (pieces, tokens, space, time): Hard 60-turn horizon guarantees bounded execution.
- Termination guarantee: Monotonic progress towards win conditions via finite lives and non-zero hit probabilities per attack turn.
## State representation
- Persistent state: `turn_count: int (0..60)`, `ball_zone: int (0..3)`, `ball_possession_team: int (0 or 1)`.
- Per-agent state: `zone: int (0..3)`, `is_coveiro: bool`, `lives: int (1 for regular, 3 for active Coveiro)`, `is_alive_in_main: bool`.
- Minimal observable information: Fully observable public state.
## Action space
- `pass(to_zone: int)`: where `to_zone` is occupied by a teammate.
- `attack(target_id: int)`: where `target_id` is an opponent in the opposing main court.
- `react(reaction: Enum)`: where `reaction in {EVADE, ATTEMPT_CATCH}` (chosen by targeted defender).
## Playability notes
- Single-player-vs-AI: Engine-ready. AI evaluates whether to pass to cemetery for rear flank attacks vs direct front attacks.
- Group games (n>4): Native 6-agent model (3v3) captures all core mechanics of 8v8 or 10v10 traditional dodgeball without loss of strategic depth.
- Physical-skill games: Ball dodging and catching abstracted into probabilistic tactical choices.
- What is lost in the adaptation: Continuous physical dodging reflexes and chaotic playground ball bounces.
## Implementation hints
Discrete 4-zone Markov decision process. Clean state representation. Suggested milestone 1: Implement the 4-zone state transitions, Attack/Catch resolution, and the Coveiro 3-life entry mechanic.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Portuguese Dodgeball / Jogo da Queimada (Portugal). (n.d.). Games of Countries. https://gamesofcountries.com/games/pt-portugal/queimada-portuguesa
@misc{gamesofcountries-pt-portugal-queimada-portuguesa,
title = {Portuguese Dodgeball / Jogo da Queimada (Portugal)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pt-portugal/queimada-portuguesa}
}