Formal Specification
Twelve Sticks — Formal Specification
Estonia · hide-seek · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: discretizedGap-fills: 7
# 12 pulka (Twelve Sticks) — AI-optimized specification
## General idea
A high-stakes tactical hide-and-seek game structured around a physical lever base and 12 collectible stick tokens. The seeker must collect scattered sticks to activate searching rights, while hiders exploit the seeker's distance from home base to either stay concealed or stealthily sprint in to kick the board, scattering the sticks and resetting all captured prisoners.
## Formal model
- **Abstraction taken:** The continuous 3D farmyard and seesaw lever physics are discretized into a 2D topological grid with line-of-sight (LOS) obstacles. The lever stomp is modeled as a 2D stochastic radial dispersion of 12 stick tokens from the origin .
- **Player/agent count:** 1 Seeker agent, Hider agents ().
- **Turn model:** Synchronous discrete ticks. All agents submit movement and interaction actions simultaneously each tick.
## Formal rules
R1. Grid and Base: The environment is a 2D grid with passable cells and LOS-blocking obstacle cells. The board base is located at coordinate .
R2. Setup and Scatter:
- At tick , 12 stick tokens are launched from and distributed to random ground coordinates within a radius [gap-fill: stick locations sampled from a uniform radial distribution ].
- Board stick count . Seeker status is `COLLECTING`. All Hiders status is `HIDING`.
R3. Phase 1 (Collection Phase):
- While , the Seeker's field of vision is restricted to an immediate 1-cell radius (Seeker cannot scan for hiders while gathering sticks).
- Seeker moves up to cells per tick to pick up sticks (auto-collected on entering cell) and must bring them back to to deposit onto the board.
- Hiders move up to cells per tick into concealment behind obstacle cells.
R4. Phase 2 (Search Phase):
- When on , Seeker status becomes `SEARCHING` with full directional line-of-sight (LOS).
- Seeker moves through the environment to find Hiders.
- A Hider is *spotted* if there is an unblocked ray of visibility between Seeker and within detection range .
R5. Capture Resolution:
- Once is spotted, Seeker must return to and execute `tag_board(H_i)` while remains in LOS or before reaches the board.
- If Seeker executes `tag_board(H_i)` successfully, enters `CAPTURED` status and is teleported to the prison zone adjacent to .
R6. Board Kick / Liberation:
- Any active uncaptured Hider who moves into cell may execute `kick_board()` on their tick.
- If `kick_board()` is executed while the Seeker is not at :
1. All 12 sticks are re-scattered per R2 [gap-fill: stick scatter is re-sampled].
2. Board stick count resets to .
3. All `CAPTURED` players immediately transition back to `HIDING` status and may disperse.
4. Seeker reverts to `COLLECTING` status.
R7. Round End and Termination:
- The round ends with a Seeker victory when all Hiders are in `CAPTURED` status simultaneously.
- [gap-fill: to guarantee termination, each successive board kick reduces the maximum scatter radius by (), and a hard turn cap ticks awards the win on points].
R8. [gap-fill: The first player captured during the round is queued to become the Seeker for the subsequent round].
## Edge cases
- Tie at the end condition: If a Hider executes `kick_board()` on the exact same tick the Seeker executes `tag_board()`, the hider's board kick takes strict priority [gap-fill: simultaneous kick-vs-tag priority].
- A player with no legal move: Not applicable; agents can always choose `wait()` or move to an adjacent open cell.
- Repetition / cycles: Bounded by the decaying scatter radius rule in R7 and the global round tick limit [gap-fill: cycle bounding via scatter decay].
- Simultaneous claims on the same resource or position: Multiple hiders can occupy the same cell or attempt `kick_board()` simultaneously; if at least one succeeds, the board scatters once.
- Player elimination mid-round; turn order repair: Captured hiders wait passively in prison; they retain their agent state and are fully restored upon liberation.
- Resource exhaustion: Stick count is fixed at 12; sticks are never destroyed or permanently removed.
- Termination guarantee: Enforced by the finite tick limit and monotonic reduction in scatter radius per kick [gap-fill: finite tick cap guarantee].
## State representation
- Persistent state:
- `board_sticks`: Integer .
- `stick_positions`: List of 12 coordinates on grid or `IN_INVENTORY`.
- `seeker_mode`: `COLLECTING` or `SEARCHING`.
- `player_states`: Map of Agent ID , plus position .
- `capture_order`: Ordered list of captured player IDs.
- `kick_count`: Integer count of board resets.
- Per-tick ephemeral state:
- `los_visibility_matrix`: Boolean visibility between Seeker and each Hider.
- `simultaneous_actions`: Buffer of submitted agent actions for current tick.
- Observable information:
- Seeker observes: Stick locations when collecting; LOS-visible hiders and base status when searching.
- Hiders observe: Seeker position (if in direct line of sight / hearing range), board status, stick count .
## Action space
- `move(dx, dy)`: Move up to cells ().
- `pickup_stick(stick_id)`: Collect stick in current cell (Seeker only).
- `deposit_sticks()`: Place carried sticks onto (Seeker only).
- `tag_board(target_id)`: Tag spotted hider at (Seeker only).
- `kick_board()`: Kick lever at to liberate prisoners (Hider only).
- `wait()`: Remain stationary.
## Playability notes
- Single-player-vs-AI: Highly compelling. Single human hider with AI co-hiders vs AI seeker, or human seeker managing collection efficiency and territory surveillance against stealth AI hiders.
- Group games (n>4): Reduces naturally to 1 Seeker vs 1 Hider, though 1v1 removes the collaborative distraction and rescue dynamic (since no teammate exists to kick the board while another is hunted).
- Physical-skill games: Sprint speed is parameterized as movement rate (); stealth is parameterized as LOS distance and obstacle shadows.
- What is lost in the adaptation: The visceral excitement of stomping a wooden seesaw lever, the physical clatter of airborne sticks, and the tactile panic of diving into tall grass.
## Implementation hints
Use a grid with 15–20 rectangular obstacle blocks representing farm buildings and trees. Line-of-sight is easily computed via Bresenham's line algorithm. First milestone: Implement stick scattering, collection loop, and board kick reset before layering LOS perception.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Twelve Sticks (Estonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/ee-estonia/kaksteist-pulka
@misc{gamesofcountries-ee-estonia-kaksteist-pulka,
title = {Twelve Sticks (Estonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ee-estonia/kaksteist-pulka}
}