Skip to main content
Formal Specification

The Box Goes (traditional Norwegian hide-and-seek variant with central rescue can) — Formal Specification

Norway · hide-seek · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 10
# Boksen går — AI-optimized specification ## General idea Boksen går ("The Box Goes") is an outdoor hide-and-seek game with a central base ("the box") that enables prisoner rescues. A seeker attempts to spot and tag hidden players by racing back to touch the home base, while free hiders can stage high-risk sprint dashes to kick the box and liberate all captured prisoners simultaneously. The structural tension balances stealth, territorial reconnaissance, and cooperative rescue timing. ## Formal model - **Abstraction taken:** The continuous physical environment with occlusion geometry is discretized into a 2D visibility graph / occupancy grid with line-of-sight (LOS) raycasting. Movement is modeled via discrete simultaneous ticks where sprinting speed, stamina, and proximity to the base determine tag vs. rescue priority. - **Player/agent count:** 3 to 16 agents (1 Seeker, N−1 Hiders). Standard model: 5 agents (1 Seeker, 4 Hiders). - **Turn model:** Simultaneous discrete time ticks (t=1,2,…,Tround). ## Formal rules R1. **Initial Setup:** The arena is a bounded 2D grid containing obstacles/cover and a designated home base circle Cbase centered at (0,0) containing the Box object. R2. **Launch & Countdown:** At t=0, the Box is kicked to distance Dkick=10 units in a random direction [gap-fill]. The Seeker must move to retrieve the Box, return it to (0,0), and remain stationary for Tcount=10 ticks [gap-fill]. During this time, Hiders move freely to hiding nodes; Seeker has LOS blinded. R3. **Search Phase:** After countdown, the Seeker gains LOS. All agents move up to their maximum speed per tick (vseeker=1.0, vhider=1.0 [gap-fill]). R4. **Spotting & Stamping (Capture):** If the Seeker has an unoccluded LOS to Hider i within range RLOS=15 units [gap-fill], the Seeker may register a `spot(i)` action. To finalize capture, the Seeker must reach Cbase and execute `stamp_box(i)`. If executed before Hider i reaches Cbase, Hider i transitions to `PRISONER` state at (0,0) and cannot move. R5. **Rescue Kick ("Boksen går!"):** Any non-prisoner Hider j who enters Cbase without being stamped may execute `kick_box()`. This action: - Instantly liberates all `PRISONER` agents to `FREE` status. - Displaces the Box Dkick units away. - Imposes a retrieval penalty on the Seeker (must return Box and wait Trecount=5 ticks [gap-fill] before resuming stamping). R6. **Victory Condition:** The Seeker wins the round if all N−1 Hiders are simultaneously in `PRISONER` state. The first captured Hider is designated the Seeker for the subsequent round. R7. [gap-fill] **Max Tick Cap:** If Tmax=300 ticks elapse without total capture, the round terminates; the Seeker loses, and the role passes to the Hider with the longest cumulative free time. ## Edge cases - **Tie at the end condition:** If the Seeker and a Hider reach Cbase on the exact same tick, the action resolution order prioritizes `kick_box()` over `stamp_box()` if the Hider was not spotted prior to the final tick [gap-fill: rewarding proactive stealth dashes]. - **A player with no legal move:** Prisoners have an empty action set until liberated. - **Repetition / cycles:** Rescues can create theoretically infinite cycles; bounded strictly by the global round limit Tmax=300 ticks [gap-fill]. - **Simultaneous claims on the same resource or position:** If two Hiders attempt `kick_box()` simultaneously, the first registered kick resolves and resets the base; the second hider simply joins the scattering phase. - **Player elimination mid-round; turn order repair:** Captured players become inactive prisoners and do not take movement actions until liberated. - **Resource exhaustion:** No finite tokens or stamina pools consumed; grid and Box remain invariant. - **Termination guarantee:** Guaranteed by Tmax=300 tick ceiling per round and match length limit M=5 rounds. ## State representation - **Persistent state:** `seeker_id` ∈[0,N−1], `match_scores` (rounds won as seeker vs hider). - **Per-round state:** `box_pos` (x,y), `box_in_base` (boolean), `seeker_state` ∈{RETRIEVING,COUNTING,HUNTING}, `tick` ∈[0,Tmax]. - **Per-agent state:** `pos` (x,y), `status` ∈{FREE,SPOTTED,PRISONER}, `capture_order_idx` ∈[0,N−1]. - **Observable information:** Hiders observe local surroundings (LOS) and the state of Cbase. Seeker observes LOS rays emanating from current position. Hiders can see the Box status and hear/observe the Seeker's approximate position. ## Action space - `move(dx, dy)`: Displacement vector ‖v→‖≤vmax. - `hide()`: Crouch behind current obstacle (reduces detection radius by 50% [gap-fill]). - `spot(target_id)`: Seeker declares LOS detection. - `stamp_box(target_id)`: Seeker tags spotted agent at home base. - `kick_box()`: Hider kicks the base to trigger a mass rescue. ## Playability notes - **Single-player-vs-AI:** Highly playable. Human as Seeker balancing perimeter hunting vs. base defense, or Human as Hider coordinating distraction and stealth rescue dashes against an AI Seeker. - **Group games (n>4):** Scales up to 16 agents. To reduce cleanly to a 2-agent duel, 1 Seeker plays against 1 Hider with the rescue mechanic replaced by "touching the box safely scores a point" [gap-fill]. - **Physical-skill games:** Sprinting speed and kick force are abstracted into fixed velocity parameters and displacement vectors. - **What is lost in the adaptation:** Tactile adrenaline of hiding behind real vegetation, vocal shouting of chants, and neighborhood terrain idiosyncrasies. ## Implementation hints - Implement with a 2D grid using Bresenham or ray-casting line-of-sight checks. - Guard against the "camping seeker" equilibrium by enforcing that Seeker cannot stamp without an active unoccluded LOS sighting. - Suggested first milestone: Implement 2D LOS detection and simultaneous base-race resolution on a simple grid with 3 static obstacles.

Download as JSON

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

Download JSON
Cite this page

The Box Goes (traditional Norwegian hide-and-seek variant with central rescue can) (Norway). (n.d.). Games of Countries. https://gamesofcountries.com/games/no-norway/boksen-gar

@misc{gamesofcountries-no-norway-boksen-gar,
  title = {The Box Goes (traditional Norwegian hide-and-seek variant with central rescue can) (Norway)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/no-norway/boksen-gar}
}