Formal Specification
Valencian Handball — Formal Specification
Spain · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Pilota valenciana — AI-optimized specification
## General idea
A two-team direct court handball game where opposing teams defend court halves divided by an elevated central cord in an asymmetrical arena (*trinquet*). Teams alternate striking a dense ball across the cord using medieval scoring increments (15, 30, val, joc). Irregular court elements (stepped bench wall, upper end galleries) function as strategic target zones that award direct points or create complex rebound angles.
## Formal model
- **Abstraction taken:** The continuous 3D aerodynamics inside the *trinquet* (including *escala* step bounces and gallery shots) are mapped into discrete court zones: `rest_court`, `dau_court`, `escala_steps`, and `galeries`. Shot accuracy and return viability are resolved via a stochastic skill-and-position engine.
- **Player/agent count:** 2 teams of 2 agents each (Server/Back *rest*, Midfielder *mitger*).
- **Turn model:** Alternating team possession during rallies; discrete 15-point scoring units within games (*jocs*).
## Formal rules
R1. Match structure: The match is played to 60 total game points (12 *jocs*, with each *joc* worth 5 match points).
R2. Joc scoring: A *joc* is contested across 4 rally increments: .
R3. Deuce rule: If both teams reach (40–40), the score resets to (*a dos*), requiring two consecutive rally points to win the *joc*.
R4. Service (*la ferida*): The serving team initiates each rally from the service stone (*pedra*), striking the ball over the 1.80 m cord into the opponent's service box (*dau*). If the serve fails to clear the cord or misses the *dau*, the receiving team scores the *quinze*.
R5. Legal returns: The receiving team must hit the ball back over the cord before it bounces twice on the main court floor. Bounces against the stepped bench wall (*escala*) do not increment the floor bounce counter.
R6. Net clearance: Any ball hitting into the cord or passing beneath it is a fault (*falta*), awarding the point to the opposing team.
R7. Gallery winner: Landing the ball inside the opponent's upper gallery (*galeria*) scores the *quinze* immediately for the striking team.
R8. [gap-fill] Home Bo referee resolution: In case of ambiguous simultaneous wall/cord contact or disputed trajectory, an automated arbiter (*Home Bo*) decides outcome with 50/50 unbiased resolution or lets the point.
## Edge cases
- **Tie at the end condition:** Not applicable; match ends immediately upon a team winning the 12th *joc* (60 points).
- **A player with no legal move:** Not applicable; an active agent always possesses a legal swing or defensive block option.
- **Repetition / cycles:** Bounded by R3 deuce reset and non-zero stroke error rate (), guaranteeing every *joc* terminates in finite rallies almost surely.
- **Simultaneous claims on the same resource or position:** Not applicable; teammates operate in designated spatial corridors (*rest* in backfield, *mitger* at midcourt).
- **Player elimination mid-round:** Not applicable; team roster remains fixed.
- **Resource exhaustion:** Not applicable; non-depleting game elements.
- **Termination guarantee:** Guaranteed by finite game target (12 *jocs*) and strictly bounded rally durations.
## State representation
- **Persistent state:** `jocs_team_A` (0..12), `jocs_team_B` (0..12), `current_joc_score` , `serving_side` (A or B).
- **Per-rally ephemeral state:** `ball_pos` , `ball_velocity` , `floor_bounces` (0..1), `step_contact` (bool), `active_team` (A or B).
- **Observable information:** Fully observable to all agents.
## Action space
- `serve(target_subzone, power)`: Executed by serving agent from *pedra* targeting the *dau*.
- `stroke(type, target_zone, elevation, speed)`: Where `type` , and `target_zone` .
- `reposition(target_x, target_y)`: Positional adjustment between strokes.
## Playability notes
- **Single-player-vs-AI:** Natural; human commands one team's primary hitter while AI controls teammates and opponents using identical tactical tables.
- **Group games (n>4):** Reduces to 2v2 or 1v1 without loss of structural identity; 3v3 team dynamics primarily distribute court coverage.
- **Physical-skill games:** Shot execution modeled via: [gap-fill] .
- **What is lost in the adaptation:** Hand stinging sensation, crowd proximity noise on the *escala*, and fine hand-wrap micro-customizations are abstracted.
## Implementation hints
Medium complexity. The distinctive *trinquet* geometry (central cord at 1.80m, lateral steps, end galleries) provides rich strategic depth. First milestone: Implement 15-point scoring state machine with deuce resets, then build 2-zone court rally physics with net clearance checks.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Valencian Handball (Spain). (n.d.). Games of Countries. https://gamesofcountries.com/games/es-spain/pilota-valenciana
@misc{gamesofcountries-es-spain-pilota-valenciana,
title = {Valencian Handball (Spain)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/es-spain/pilota-valenciana}
}