Formal Specification
Romansh club-and-ball game (Gieu da palas) — Formal Specification
Switzerland · ball-team · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 1
# Gieu da mazzas — AI-optimized specification
## General idea
A discretized team batting, base-running, and fielding game. The batting agent drives a ball into a 2D outfield grid and sprints along a 1D shuttle base track to score runs. The fielding agents position dynamically to catch airborne fly balls for instant outs or field and throw the ball to strike running batsmen between bases.
## Formal model
- **Abstraction taken:** The 80 × 40 m field is modeled as a 2D spatial grid with home base at and distal base post at . Batting produces a 2D landing coordinate and flight time . Base running advances 1 cell per tick along the shuttle axis; fielders move, catch, and execute line-of-sight throwing strikes.
- **Player/agent count:** 2 teams (, ), agents each.
- **Turn model:** Sequential batting order with synchronous multi-agent movement ticks during active ball flight and base running.
## Formal rules
R1. Inning Structure: Match consists of full innings (each team bats and fields 4 times). An inning ends when the fielding team records 3 outs.
R2. Batting Strike:
- Active batsman chooses swing power and directional angle .
- Ball landing position . Flight time .
R3. Fielding and Catching:
- If a defending agent can reach in time :
- If caught: Batsman is immediately `Out` (1 out added); inning resets for next batsman.
- If dropped / ground bounce: Ball is live at . Defender picks up ball.
R4. Base Running & Run Scoring:
- Struck batsman becomes `Runner` on the linear axis .
- Runner advances 1 unit per tick toward distal post , then returns toward .
- A runner reaching and successfully returning to scores point (`Run`).
R5. Throwout / Tag (*Mazzar*):
- A defender holding the ball may execute `throw_at_runner(runner_id)`.
- If runner is between base stations (not safely on 0 or 4):
- If hit: Runner is `Out` (1 out added).
R6. Match Victory: After innings, team with the highest cumulative run total wins.
## Edge cases
- **Tie at the end condition:** [gap-fill] If tied after 4 innings, a 5th extra inning is played to decide the winner.
- **A player with no legal move:** Batsman swings or bunts; fielders move/throw; actions always available.
- **Repetition / cycles:** Inning advances strictly upon recording 3 outs; match bounded by 4 innings.
- **Simultaneous claims on the same resource or position:** Safe base posts support only 1 runner at a time; trailing runner must hold at previous post.
- **Player elimination mid-round; turn order repair:** Out runners return to the bench; batting queue advances cyclically.
- **Resource exhaustion:** 1 ball in play; resets to home base after each play.
- **Termination guarantee:** Guaranteed by finite 3-out limit per inning and inning cap.
## State representation
- **Persistent state:** Match score , inning index , batting lineup indices.
- **Per-play state:** Out counter , ball location and velocity, fielder positions, runner coordinates and destination.
- **Observable information:** Fully observable state. All player coordinates, ball trajectory, outs, and scores are public.
## Action space
- `bat_ball(power, angle)`: Floats .
- `run_base(direction)`: Enum .
- `throw_at_runner(runner_id)`: Target runner ID.
## Playability notes
- **Single-player-vs-AI:** Highly playable tactical baseball/lapta-style mini-game.
- **Group games ():** Standard 6v6 or 8v8 team sport simulation.
- **Physical-skill games:** Bat-ball contact sweet spot, shuttle sprint deceleration, and direct ball tagging are mapped into geometric probabilities.
- **What is lost in the adaptation:** Physical feel of the carved birch club, sprinting over high alpine meadow wildflowers, and Romansh dialect cheering.
## Implementation hints
- Implement the 2-phase play engine: (1) Ballistic flight + catch check, (2) Base-running sprint loop with fielder throw resolution.
- Suggested first milestone: Implement deterministic base running and fly catch resolution before building AI fielding positioning heuristics.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Romansh club-and-ball game (Gieu da palas) (Switzerland). (n.d.). Games of Countries. https://gamesofcountries.com/games/ch-switzerland/gieu-da-mazzas
@misc{gamesofcountries-ch-switzerland-gieu-da-mazzas,
title = {Romansh club-and-ball game (Gieu da palas) (Switzerland)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ch-switzerland/gieu-da-mazzas}
}