Formal Specification
Nail Beam / Hammerschlagen — Formal Specification
Germany · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Nagelbalken — AI-optimized specification
## General idea
A turn-based precision striking game where agents rotate turns around a shared wooden log, each attempting to drive their own 100 mm construction nail flush into the timber using single strikes of the hammer's narrow cross-peen (*Finne*). Each strike involves a trade-off between kinetic impact force and lateral aim precision; off-center strikes risk bending the nail shank, reducing penetration efficiency on subsequent turns.
## Formal model
- **Abstraction taken:** The 3D hammer swing and anisotropic wood grain resistance are abstracted into a 2D impact plane. Each nail is defined by remaining exposed height and bend angle . An agent submits swing force and aim coordinate , generating penetration depth and angle update via stochastic contact dynamics.
- **Player/agent count:** 2 to agents.
- **Turn model:** Sequential round-robin rotation; each active agent takes exactly 1 strike per turn.
## Formal rules
R1. **Setup:** Each registered agent starts with a nail standing at initial height ( pre-set), bend angle , strike counter , and status `Active`. Turn order is initialized as .
R2. **Turn Structure:** On an agent's turn, if status is `Active`, the agent submits action `strike_nail(swing_force, aim_correction)`:
- `swing_force` .
- `aim_correction` .
- Strike counter increments: .
R3. **Impact Kinematics:**
- Impact offset from nail head center: .
- Finne blade contact width is ; nail head radius is .
- If , the strike is a complete miss ().
R4. **Penetration & Bending Resolution:**
- If contact occurs on straight nail ():
- Penetration: .
- Bending induced: .
- If nail is bent ():
- If agent aims counter to bend (), strike acts to straighten: .
- Otherwise, direct downward penetration is penalized by efficiency factor .
R5. **State Update & Flush Check:**
- New exposed height: .
- Bend angle: .
- If (flush with surface), agent transitions to status `Finished` and is removed from subsequent turn rotations.
R6. [gap-fill] Max Strikes Stalemate Cap:** If any nail remains un-driven after strikes, the nail is considered stuck; the agent's status is forced to `Finished` with maximum penalty.
R7. **Ranking & Loss Condition:**
- Agents are ranked by the order they achieve `Finished` status (fewest total strikes ).
- The last remaining agent with an un-sunk nail loses the round.
## Edge cases
- Tie at the end condition: If multiple agents finish on the same round with equal strikes, ties are broken by total strikes ; if identical, joint ranking is awarded.
- A player with no legal move: Not applicable; `strike_nail(F, \delta x)` is always available while status is `Active`.
- Repetition / cycles: Bounded strictly by positive penetration and the hard ceiling in R6.
- Simultaneous claims on the same resource or position: Turns are strictly sequential; each agent interacts only with their designated nail.
- Player elimination mid-round; turn order repair: When an agent finishes, the cyclic turn pointer skips their index, advancing directly to the next active agent.
- Resource exhaustion (pieces, tokens, space, time): Nails are consumed (driven flush); each player has exactly 1 nail per round.
- Termination guarantee: why the game provably ends: Guaranteed because each strike with non-zero force has positive expected depth decrement , backed by the hard cap .
## State representation
- **Persistent state:** Roster of agents, turn order list, active player count, finish order list.
- **Per-player state:** Exposed height , bend angle , strike counter , status (`Active`, `Finished`).
- **Per-turn ephemeral state:** Active agent index , chosen force/aim parameters, sampled offset , penetration .
- **Observable information:** Perfect information; heights, bend angles, strike counts, and rankings of all nails on the block are globally visible.
## Action space
- `strike_nail(swing_force, aim_correction)`:
- `swing_force` : kinetic impulse of hammer swing.
- `aim_correction` : intentional lateral targeting adjustment (used to center strike or straighten bent shank).
Precondition: agent is active and holds current turn priority.
## Playability notes
- Single-player-vs-AI: Engine-ready; 1 human user timing swing power and aim crosshairs against AI tavern patrons.
- Group games (n>4): Round-robin rotation naturally generalizes to any players without rule changes.
- Physical-skill games: Muscular control with the hammer's narrow Finne edge is modeled via the bivariate variance function .
- What is lost in the adaptation: The ringing metallic ping of the hammer, flying steel sparks, and physical grip vibration.
## Implementation hints
Discrete turn-based simulation with trivial computational requirements. Milestone 1: implement R3–R5 penetration and bending update equations, verify that full-power misses bend nails and realistic games resolve in 4 to 12 strikes per player.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Nail Beam / Hammerschlagen (Germany). (n.d.). Games of Countries. https://gamesofcountries.com/games/de-germany/nagelbalken
@misc{gamesofcountries-de-germany-nagelbalken,
title = {Nail Beam / Hammerschlagen (Germany)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/de-germany/nagelbalken}
}