Skip to main content
Formal Specification

Nail hammering (Hammerschlagen / Nagelbalken) — Formal Specification

Austria · dexterity-small · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Nageln — AI-optimized specification ## General idea A sequential elimination game of precision and risk-reward estimation. Agents take turns striking a large vertical iron nail into a tree stump using the narrow wedge of a hammer. Agents choose between cautious low-force strikes (low risk of bending, low penetration depth) and aggressive high-force strikes (high penetration depth, elevated risk of bending or missing). The last agent with an un-sunk nail loses. ## Formal model - **Abstraction taken:** The continuous 3D biomechanics of a hammer swing and plastic metal deformation are modeled as a discrete state per nail: vertical penetration depth di∈[0,Dmax⁡] and angular bend deformation θi∈[0,90∘]. Strikes sample from a bivariate normal distribution of contact point and force vector. - **Player/agent count:** N agents (2≤N≤8). - **Turn model:** Strictly sequential, clockwise round-robin rotation. ## Formal rules R1. Setup: Each agent i∈{1…N} has one active nail with initial depth di=10 mm (out of Dmax⁡=120 mm), bend angle θi=0∘, and status `active`. R2. Turn action: On their turn, active agent i chooses an intent: - `strike(force)`: where force∈[0.1,1.0]. - `straighten(tap_force)`: available only when θi>15∘. R3. Strike resolution: - Given chosen force f: - Contact accuracy a∼𝒩(1.0,σ2(skill)). - Effective impact I=f⋅a. - If I<0.2: Miss. Depth and angle unchanged. - If 0.2≤I≤0.8: Clean hit. Penetration increases: Δd=κ⋅I⋅cos⁡(θi). - If I>0.8: High-impact hit. Penetration increases: Δd=κ⋅I; [gap-fill] with probability P(bend)=0.4⋅(f−0.7), nail bends by Δθ∼Uniform(15∘,45∘). R4. Straightening resolution: - Choosing `straighten` reduces bend angle: θi←max⁡(0∘,θi−30∘) with 0 penetration gain. R5. Safe / Out condition: - If di≥Dmax⁡, agent i achieves `safe` status and is permanently removed from the active turn rotation. R6. Elimination / Loss: - Play continues until exactly 1 agent remains in `active` status. - The final active agent is declared the `loser`. ## Edge cases - **Tie at the end condition:** Not applicable; turns are sequential, and nail penetration triggers `safe` state individually upon turn completion. - **A player with no legal move:** A player always has legal strike/straighten choices. - **Repetition / cycles:** [gap-fill] Guaranteed to terminate because expected penetration gain 𝔼[Δd]>0 strictly holds over all strike policies. - **Simultaneous claims on the same resource or position:** Turns and wood impacts are strictly sequential. - **Player elimination mid-round; turn order repair:** When an agent achieves `safe`, they are excised from the circular turn linked-list; turn passes immediately to the next active agent. - **Resource exhaustion:** Nails are never replenished. - **Termination guarantee:** Each clean strike monotonically advances di toward Dmax⁡; capped at Tmax⁡=50 turns per agent. ## State representation - **Persistent state:** Active agents queue Q⊆{1…N}, loser ID. - **Per-agent state:** Nail depth di∈[0,120] mm, bend angle θi∈[0∘,90∘], status ∈{active,safe}. - **Observable information:** Fully observable. All nail depths, bend angles, and player turn orders are public. ## Action space - `strike(force)`: Float f∈[0.1,1.0]. - `straighten(force)`: Float f∈[0.1,0.5]. ## Playability notes - **Single-player-vs-AI:** Highly engaging push-your-luck arcade/risk-management game. - **Group games (n>4):** Scales seamlessly up to 8+ agents with no structural changes. - **Physical-skill games:** Hammer swing balance, wedge alignment, and steel glancing effects are mapped into the force-accuracy curve. - **What is lost in the adaptation:** Physical hammer recoil, wood smell, sound of ring-peen impact, and communal tavern laughter. ## Implementation hints - Implement agent turn cycle as a circular doubly-linked list with node deletion upon hitting di≥Dmax⁡. - Suggested first milestone: Implement deterministic depth advancement and straightening before wiring the stochastic glancing/bending probability model.

Download as JSON

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

Download JSON
Cite this page

Nail hammering (Hammerschlagen / Nagelbalken) (Austria). (n.d.). Games of Countries. https://gamesofcountries.com/games/at-austria/nageln

@misc{gamesofcountries-at-austria-nageln,
  title = {Nail hammering (Hammerschlagen / Nagelbalken) (Austria)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/at-austria/nageln}
}