Formal Specification
Galician Key Game — Formal Specification
Spain · dexterity-throw · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Xogo da chave — AI-optimized specification
## General idea
A turn-based precision disc throwing game where agents launch heavy iron discs (*pelouros*) across 12 meters to strike a metallic target structure (*chave*). Direct aerial impacts on the rotating horizontal blades score maximum points (5 pts), central stem impacts score intermediate points (2 pts), and ground bounces or misses score 0 points.
## Formal model
- **Abstraction taken:** The 3D flight trajectory of the iron disc and kinetic impact with the metallic target are modeled as a 2D landing coordinate at target plane . An impact classifier checks for geometric intersection with the rotating blades, central stem, or ground plane.
- **Player/agent count:** 2 agents in singles (or 2 teams of 2 to 4 agents).
- **Turn model:** Sequential turns; each agent throws 3 consecutive discs per inning over innings.
## Formal rules
R1. Target geometry: Target *chave* at consists of:
- Upper rotating blade (*aspa superior*): Width , height , value pts.
- Lower rotating blade (*aspa inferior*): Width , height , value pts.
- Central stem (*eixo*): Width , height , value pts.
R2. Inning structure: Each agent throws 3 discs per inning from distance .
R3. Throw action: The agent chooses .
R4. Outcome sampling: Impact coordinates are sampled from a 2D Gaussian centered on aim coordinates:
R5. Scoring resolution:
- If intersects either rotating blade with flight altitude : points (*dar na chave*).
- If intersects the central stem: points.
- If the disc touches the ground () prior to or during contact: 0 points (*terra* / *nulo*).
- If the disc misses target bounds: 0 points.
R6. Score accumulation: Points from all 3 discs are added to the agent/team running total.
R7. [gap-fill] Tie-break: If total points are tied after innings, a sudden-death 3-disc playoff round is contested.
R8. Win condition: The agent or team with the highest aggregate score after innings (and playoff if needed) wins.
## Edge cases
- **Tie at the end condition:** Handled by R7 ( [gap-fill]) 3-disc playoff round.
- **A player with no legal move:** Not applicable; throw action is always legal.
- **Repetition / cycles:** Non-cyclical; bounded strictly by the 3-disc count across 8 innings.
- **Simultaneous claims on the same resource or position:** Not applicable; strictly sequential turns.
- **Player elimination mid-round:** Not applicable; fixed roster across all innings.
- **Resource exhaustion:** Disc count decreases monotonically per inning.
- **Termination guarantee:** Guaranteed by finite 8-inning schedule.
## State representation
- **Persistent state:** `scores` , `current_inning` (), `active_agent_id`.
- **Per-inning ephemeral state:** `discs_thrown` (), `inning_points` (), `last_impact_coords` .
- **Observable information:** Fully observable to all agents.
## Action space
- `throw_pelouro(aim_x, aim_z, arc_elevation, power)`: Continuous parameters targeting the *chave* structure.
## Playability notes
- **Single-player-vs-AI:** Natural; human aims against AI agents using optimal target expected-value calculations.
- **Group games (n>4):** Reduces to sequential turns across agents with additive score pooling.
- **Physical-skill games:** Expected payoff per target component: . Higher-skill agents concentrate dispersion on the wider lower blade. [gap-fill] Dispersion: .
- **What is lost in the adaptation:** Physical heavy heft of 700g cast iron in hand and metallic spinning chime of the struck blades.
## Implementation hints
Very low complexity. Direct 2D geometric bounding box intersection math. First milestone: Implement 3-disc throw sequence with blade/stem intersection checks, then wrap in 8-inning tournament loop.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Galician Key Game (Spain). (n.d.). Games of Countries. https://gamesofcountries.com/games/es-spain/xogo-da-chave
@misc{gamesofcountries-es-spain-xogo-da-chave,
title = {Galician Key Game (Spain)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/es-spain/xogo-da-chave}
}