Skip to main content
Formal Specification

Frisian Handball — Formal Specification

Netherlands · ball-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 2
# Kaatsen — AI-optimized specification ## General idea A strategic territorial team contest played across asymmetric court roles. The serving team aims to place tight serves into a designated box while the receiving team attempts to return deep drives into neutral territory. When rallies end indecisively on the ground, a physical marker (*kaats*) is planted, creating dynamic conditional mini-goals that both teams contest upon switching sides. ## Formal model - **Abstraction taken:** The 61 m x 32 m grass pitch is discretized into a 2D coordinate grid with 5 key zones: `Serving_Box`, `Perk` (receiving box), `Neutral_Field`, `Outfield`, and `Out_of_Bounds`. Trajectory arcs and catches are modeled as discrete directional shots with stochastic accuracy checks based on player role ratings. - **Player/agent count:** 6 agents organized in two fixed teams of 3: `Team_A` and `Team_B`. Roles rotate upon side-switches (`Server`, `Front_Receiver`, `Back_Receiver`, `Fielders`). - **Turn model:** Alternating rally exchanges within a discrete sequential round structure. ## Formal rules R1. Setup: `Team_A` starts as `Serving_Side`, `Team_B` as `Receiving_Side`. Point score begins at `(0, 0)`; *eerst* score starts at `(0, 0)`. `active_kaatsen = []` (max length 2). R2. Rally Initiation: Active Server selects a serve action: `serve(target_zone, power)`. The server's roll determines whether the ball lands legally inside the `Perk`. R3. Serve Resolution: - If serve lands outside `Perk` or touches foul lines, Receiving Team scores 2 points. - If serve is unreturned by Perk agents, Serving Team scores 2 points. - If returned cleanly, a return rally begins. R4. Return Rally Resolution: The receiving agent selects `return_strike(aim_vector, power)`. - If return lands beyond the serving baseline, Receiving Team scores 2 points. - If return is fielded on the fly by an outfield defender, Serving Team scores 2 points. - If return lands in the `Neutral_Field` and rolls to a stop without crossing baselines, a `kaats` is registered at `(x_pos, y_pos)` and appended to `active_kaatsen`. R5. Side Switch Trigger: - If `len(active_kaatsen) == 2`, OR if `(score_A == 6 or score_B == 6)` and `len(active_kaatsen) >= 1`, the teams immediately swap `Serving_Side` and `Receiving_Side` roles. R6. Kaats Resolution Rally: When playing with active `kaatsen`, the new receiving team attempts to drive the ball beyond the first queued `kaats_x` marker. If `ball_distance > kaats_x`, the receiving side scores 2 points; otherwise, the fielding side scores 2 points. The resolved `kaats` is popped from the queue. R7. Game/Match Progression: - When a team scores after reaching 6 points (e.g. going from 6 to win at standard tennis-like deuce/advantage [gap-fill: standard KNKB sudden 6-point conversion]), they win 1 *eerst*. Point score resets to `(0, 0)`. - The first team to accumulate 6 *eersten* wins the match. ## Edge cases - Tie at the end condition: Not applicable; points are awarded in strict binary 2-point increments, and the 6th *eerst* immediately halts the match. - A player with no legal move: Not applicable; the active agent in possession or at the delivery mark always has legal stroke actions. - Repetition / cycles: Bounded; every rally strictly results in either points awarded or a `kaats` placed (which forces a role switch after at most 2 placements), driving score progress. - Simultaneous claims on the same resource or position: [gap-fill] If two fielders attempt to field the same ball in the outfield, the agent designated with highest positional proximity resolves the catch check. - Player elimination mid-round; turn order repair: No eliminations; full squads of 3 remain active for the duration of the match. - Resource exhaustion (pieces, tokens, space, time): Not applicable; the single ball is reused perpetually. - Termination guarantee: Points are monotonically awarded on every unreturned rally and kaats contest. Since 6 eersten are required to win, the match terminates in a strictly finite number of rallies (maximum ~72 rallies). ## State representation - Persistent state: - `eersten_score`: Tuple `(int, int)` in `[0..6] x [0..6]`. - `points_score`: Tuple `(int, int)` with values in `{0, 2, 4, 6}`. - `serving_team`: Enum `{Team_A, Team_B}`. - `active_kaatsen`: List of up to 2 coordinates `[(x1, y1), (x2, y2)]`. - Per-turn ephemeral state: - `active_rally_phase`: Enum `{Serve, Return, Field_Contest}`. - `ball_position`: 2D coordinate `(x, y)` and velocity vector `(vx, vy)`. - Observable information: - Full observability: all scores, court positions, active kaats marks, and player roles are common knowledge. ## Action space - `serve(target_subzone: int, spin: float)`: Executed only by the designated server. - `strike_return(aim_zone: int, elevation: float, power: float)`: Executed by receiving/perk agent. - `field_intercept(intercept_point: (float, float))`: Executed by outfield defenders. ## Playability notes - Single-player-vs-AI: Needs adaptation; the player controls the 3 agents of one partuur simultaneously or controls the key active striker while teammate AI handles fielding. - Group games (n>4): The 3v3 team structure is irreducible without losing the unique multi-tier perk defense dynamic; to reduce to 2 agents, each agent controls a 3-player partuur. - Physical-skill games: Glove strikes and barehand hits parameterized by `accuracy = f(player_skill, incoming_velocity)`. - What is lost: The physical sensation of striking a 24-gram rock-hard leather ball with a stiff wooden-lined leather *want* or the stinging bare palm. ## Implementation hints Medium complexity; implement the game in two clean layers: (1) an outer state machine managing points (0-2-4-6), eersten (0-6), side-switching, and the kaats FIFO queue; (2) an inner rally simulator that evaluates shot trajectories against the discrete zone grid. First milestone: Build the deterministic outer state machine with random winner resolution per rally, then integrate directional shot physics.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Frisian Handball (Netherlands). (n.d.). Games of Countries. https://gamesofcountries.com/games/nl-netherlands/kaatsen

@misc{gamesofcountries-nl-netherlands-kaatsen,
  title = {Frisian Handball (Netherlands)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/nl-netherlands/kaatsen}
}