Skip to main content
Formal Specification

One Krona — Formal Specification

Iceland · hide-seek · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: discretizedGap-fills: 7
# Ein króna — AI-optimized specification ## General idea The definitive traditional Icelandic hide-and-seek and base-claiming sprint game. A seeker counts at home base (*dunkur*); when players are spotted, a sprint footrace ensues between seeker and hider to reach the base first and recite the statutory formula (*"Ein króna fyrir [Nafn], einn, tveir, þrír!"*). Hiders can save themselves by reaching base first (*"fyrir mér"*), and the final remaining hider can daringly liberate all captured prisoners with an all-save declaration (*"fyrir öllum"*). ## Formal model - **Abstraction taken:** Continuous outdoor landscape and breathless linguistic recitation under exertion are discretized into a 2D environment containing a central Home Base and H hiding zones. Line-of-sight detection, footraces to base, and statutory chant recitation delays are resolved on discrete time-ticks. [gap-fill] Base sprint speeds, recitation time penalties, and round limits formalize schoolyard conventions. - **Player/agent count:** N agents (modeled as N=6: 1 Seeker, 5 Hiders). - **Turn model:** Real-time ticked simulation across counting, searching, and sprint-to-base confrontation phases. ## Formal rules R1. Setup: Home Base (*dunkurinn*) is located at (0,0). The environment contains H=8 hiding zones with variable distance and occlusion parameters [gap-fill]. Initially, all Hiders are in state `HIDDEN`. R2. Phase 1 — Counting: - Seeker stands at (0,0) in state `COUNTING` for Tcount=30 ticks with vision disabled. - Hiders select and navigate to hiding zones during this window. R3. Phase 2 — Searching & Spotting: - At tick 30, Seeker transitions to `SEARCHING`, patrolling the terrain at speed Speedseeker. - When a Hider k is within line of sight of the Seeker, a detection check triggers: P(Detect)=f(Distance,Occlusion). - Once detected, Hider k transitions to `SPOTTED`, initiating an immediate footrace between Seeker and Hider k toward Home Base (0,0). R4. Tagging & Base Recitation: - **Seeker Tag (*Danka huldumann*):** If the Seeker reaches (0,0) first and spends Tchant=2 ticks reciting *"Ein króna fyrir [Nafn], einn, tveir, þrír!"* [gap-fill], Hider k transitions to state `CAPTURED` and is held at base. - **Hider Self-Save (*Bjarga sér*):** If Hider k reaches (0,0) first (or sneaks in undetected) and spends 2 ticks reciting *"Ein króna fyrir mér, einn, tveir, þrír!"*, Hider k transitions to state `SAFE` (*stikkfrír*) and cannot be caught for the rest of the round. R5. The All-Save (*Ein króna fyrir öllum*): - When exactly one undetected Hider remains in state `HIDDEN` while one or more players are `CAPTURED`, that final hider may sprint to (0,0) and recite *"Ein króna fyrir öllum, einn, tveir, þrír!"*. - If successful, all `CAPTURED` players are immediately restored to state `SAFE`, the Seeker loses the round, and the Seeker is forced to repeat the role in the subsequent round [gap-fill]. R6. Round Victory & Succession: - The round concludes when all Hiders are either `CAPTURED` or `SAFE`. - If the Seeker captured at least one player without an All-Save wipeout, the **first player captured** becomes the Seeker for the subsequent round. - [gap-fill] The match terminates after **5 rounds**; players score points for capturing hiders (as Seeker) and achieving self-saves (as Hiders). ## Edge cases - Tie at the end condition: If Seeker and Hider arrive at base on the exact same tick, the hider's self-save takes priority [gap-fill] (traditional pro-runner convention). - A player with no legal move: Not applicable — spatial navigation and sprint actions are always available. - Repetition / cycles: All-Save resets are capped at a maximum of 3 resets per round [gap-fill], after which the round terminates with all players safe. - Simultaneous claims on the same resource or position: Handled via the base arrival time comparator and chant completion ticks in R4. - Player elimination mid-round; turn order repair: Hiders transition cleanly between `HIDDEN`, `SPOTTED`, `CAPTURED`, and `SAFE`; role assignments persist until round completion. - Resource exhaustion: Fixed N players; base and hiding zones persist across rounds. - Termination guarantee: Guaranteed by the finite player count N, non-reversing `SAFE` status, and the 3-reset All-Save cap. ## State representation - Persistent state: - `round_number`: integer `[1..5]`. - `current_seeker_id`: agent ID. - `player_scores`: map `{agent_id: int}`. - Per-round ephemeral state: - `hider_status`: array of `{HIDDEN, SPOTTED, CAPTURED, SAFE}`. - `agent_positions`: map `{agent_id: (x, y)}`. - `capture_order`: list of captured agent IDs. - `active_sprint_races`: list of `(hider_id, distance_seeker_to_base, distance_hider_to_base)`. - `all_save_reset_count`: integer `[0..3]`. - `current_tick`: integer. - Observable information: - Seeker observes only line-of-sight terrain and base status. - Hiders observe Seeker position, base status, and fellow hider states. ## Action space - Seeker: `patrol(x, y)`, `sprint_to_base_and_tag(hider_id)`. - Hider: `hide(zone_id)`, `sneak_to_base()`, `sprint_self_save()`, `sprint_all_save()`. ## Playability notes - Single-player-vs-AI: Natural — human plays as the Seeker managing base proximity vs search radius, or as a hider coordinating sneak attacks and thrilling all-saves. - Group games (n>4): Scales naturally from 3 to 20 players without changing rules. - Physical-skill games: Sprint speed and lung capacity under breathless recitation are abstracted into tick velocities and chant delay counters. - What is lost in the adaptation: The playful verbal slip-ups during tongue-twisting rhythmic chants under sprint adrenaline are formalized into discrete recitation time penalties. ## Implementation hints - Implement the base confrontation as a race comparator: Time=DistanceSpeed+Tchant. - AI hiders can evaluate an All-Save utility function based on Seeker distance from base: if dseeker>2×dhider, initiate sprint. - Suggested first milestone: implement R1–R4 (counting, spotting, base race comparator, and captured/safe state updates).

Download as JSON

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

Download JSON
Cite this page

One Krona (Iceland). (n.d.). Games of Countries. https://gamesofcountries.com/games/is-iceland/ein-krona

@misc{gamesofcountries-is-iceland-ein-krona,
  title = {One Krona (Iceland)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/is-iceland/ein-krona}
}