Skip to main content
Formal Specification

Hit Ball (traditional Scandinavian rounders / batting game; also known as langball) — Formal Specification

Norway · ball-team · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 10
# Slåball — AI-optimized specification ## General idea Slåball ("Hit Ball" / Langball) is a traditional Scandinavian batting and corridor base-running sport. Batters strike a pitched ball and sprint along an open linear field between a home sanctuary line and an outfield sanctuary line, accumulating round-trip runs while fielders attempt to catch fly balls or throw the ball to strike moving runners in transit. ## Formal model - **Abstraction taken:** The continuous running pitch is modeled as a 1D corridor with 2 sanctuary zones (x=0 `HOME_ZONE` and x=Dfield `OUTFIELD_BASE`, where Dfield=30.0 meters [gap-fill]) and an intermediate open hazard corridor (0<x<Dfield). Running transit is discretized into krun=4 ticks [gap-fill]. Ball flight and throwing accuracy are modeled via distance-decay stochastic functions. - **Player/agent count:** 2 teams of M∈[5,15] agents each (standard M=6). Team A (`INNELAG`), Team B (`UTELAG`). - **Turn model:** Hybrid sequential-simultaneous: sequential batting queue that triggers a multi-tick simultaneous running and fielding phase upon each fair strike. ## Formal rules R1. **Team Roles & Setup:** Team A (Batting) forms an ordered queue Q=[A1…AM] behind Home (x=0). Team B (Fielding) places 1 Pitcher (`OPPKASTER`) at Home and M−1 Fielders distributed along the corridor (x∈[5,Dfield−5]). R2. **Batting Attempt:** Active batter Ak swings up to 3 times. Outcome is sampled: `FAIR_HIT(distance, angle)`, `POP_FLY(distance, fielder_id)`, or `STRIKE_MISS` [gap-fill]. 3 misses = `BATTER_OUT`. R3. **Fly Catch (Pol):** If `POP_FLY` occurs, the designated fielder attempts a catch with probability Pcatch=σ(skill−0.1⋅distance) [gap-fill]. - A regular catch eliminates the batter. - A one-handed catch (`ENHÅNDSPOL`, P=0.15⋅Pcatch [gap-fill]) immediately triggers a full **Inning Role Swap**. R4. **Corridor Running:** Upon a fair hit: - The batter must sprint from x=0 toward x=Dfield. - Any existing runners sheltering at x=Dfield may choose to `sprint_home()` or `hold()`. - Crossing the corridor takes krun=4 discrete time ticks. R5. **Tagging in Transit (Prikking):** While a runner is in transit (0<x<Dfield), fielders retrieve the ball and may execute `throw_at_runner(runner_id)`. Hit probability is Ptag=max⁡(0.1,1.0−0.05⋅dfielder-runner) [gap-fill]. A hit runner is eliminated (`OUT`). R6. **Scoring:** Any runner who successfully transitions from x=Dfield back to x=0 (`HOME_ZONE`) without being tagged scores 1 run for Team A. R7. **Inning Transition & Match End:** Teams swap roles when all M batters are eliminated or the batting queue completes [gap-fill]. The match concludes after I=4 half-innings (2 batting innings per team) [gap-fill]; the team with the higher score wins. ## Edge cases - **Tie at the end condition:** If tied after I innings, the match concludes as a draw, or resolves via a 1-batter sudden-death playoff [gap-fill]. - **A player with no legal move:** Batters must take their swing; sheltered runners at base lines may always `hold()`. - **Repetition / cycles:** Inning termination is strictly bounded by the finite batting queue M. - **Simultaneous claims on the same resource or position:** Both home and outfield sanctuaries have infinite capacity; multiple runners may shelter simultaneously without collision penalties. - **Player elimination mid-round; turn order repair:** Eliminated runners leave the corridor; batting order simply advances to the next sequential index k+1. - **Resource exhaustion:** Strike budget (3) and total innings (I=4) are strictly finite. - **Termination guarantee:** Guaranteed by finite batters, finite strikes per batter, and finite innings I=4. ## State representation - **Persistent state:** `inning` ∈[1,I], `team_scores` [SA,SB], `current_batting_team` ∈{A,B}. - **Inning state:** `queue_index` ∈[1,M], `active_runners` (list of `{agent_id, location: HOME|OUTFIELD|TRANSIT_OUT|TRANSIT_HOME, tick_progress}`). - **Ball state:** `status` ∈{AT_PITCHER,IN_FLIGHT,GROUND_REST,CARRIED}, `carrier_id`. - **Observable information:** Perfect public information. Runner locations, scores, and ball coordinates are observable. ## Action space - `bat_swing(aim_direction, power)`: Batter striking action. - `sprint_to_outfield()` / `sprint_home()` / `hold()`: Runner decisions. - `field_ball()` / `throw_at_runner(target_id)`: Fielder actions. ## Playability notes - **Single-player-vs-AI:** Highly playable. Player manages running risk (deciding when to send sheltered runners home on shallow vs deep hits) against AI fielding relay logic. - **Group games (n>4):** Reduces to a 2-agent duel by having each player act as team captain / coach directing batting and runner release decisions [gap-fill]. - **Physical-skill games:** Bat contact velocity, ball flight trajectory, and fielder throw aim are parameterized via stochastic skill functions. - **What is lost in the adaptation:** Physical exhaustion of open-field sprinting, Midsummer festival bonfire backdrop, and stinging impact of rubber balls. ## Implementation hints - Model runners on a 1D discrete transit pipeline between 2 safe terminal sinks. - Separate batting event generation from the multi-tick corridor resolution loop. - Suggested first milestone: Implement the 2-base transit state machine with deterministic ball returns before adding stochastic throwing accuracy.

Download as JSON

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

Download JSON
Cite this page

Hit Ball (traditional Scandinavian rounders / batting game; also known as langball) (Norway). (n.d.). Games of Countries. https://gamesofcountries.com/games/no-norway/slaball

@misc{gamesofcountries-no-norway-slaball,
  title = {Hit Ball (traditional Scandinavian rounders / batting game; also known as langball) (Norway)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/no-norway/slaball}
}