Formal Specification
Five Stones / Jacks — Formal Specification
Lithuania · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 5
# Akmenukai — AI-optimized specification
## General idea
Akmenukai is a sequential dexterity and hand-eye coordination game played with 5 small stones over 5 increasingly demanding pickup stages (Singles, Doubles, Triples, Fours, and the Gate). A player lofts one stone into the air, scoops or flicks a prescribed subset of resting stones with the same hand, and catches the descending stone before ground impact. Any execution error or unintended contact with adjacent stones immediately terminates the turn, with progress checkpointed until the player's next rotation.
## Formal model
- **Abstraction taken:** Probabilistic-proxy. Continuous ballistic stone tossing, finger scoops, hand-eye catch timing, and gate flicking are replaced by a stochastic resolution function [gap-fill]. Spatial stone distribution is parameterized by a set of 2D coordinates on a bounded planar canvas.
- **Player/agent count:** 2 to 6 agents taking individual turns in a fixed clockwise round-robin sequence (or 1 agent in solitaire mode).
- **Turn model:** Strictly sequential, single-active-agent turns until a fault occurs or a stage is completed.
## Formal rules
R1. Setup: 5 stones are positioned on the table. Turn order is initialized via a trial toss where agents cast all 5 stones from the palm, catch them on the dorsal side (back of hand), toss again, and catch in the palm; the agent with the highest count goes first (ties broken by reroll) [gap-fill].
R2. Stage Progression: Every agent begins at Stage 1, Sub-step 1. The 5 mandatory stages are:
- Stage 1 (Singles): 4 consecutive throws, gathering 1 stone per throw ().
- Stage 2 (Doubles): 2 consecutive throws, gathering 2 stones per throw ().
- Stage 3 (Triples): 2 consecutive throws, gathering 3 stones on the first throw and the remaining 1 stone on the second ().
- Stage 4 (Fours): 1 throw, scooping all 4 resting stones simultaneously ().
- Stage 5 (Gate / *Varteliai*): 4 throws to flick each of the 4 resting stones through an arched thumb-index gate into an enclosure, followed by 1 final throw to scoop all 4 stones from behind the gate ().
R3. Turn Execution Loop: On an agent's turn:
1. The 5 stones are scattered onto the canvas, generating coordinates for .
2. The agent selects 1 stone as the toss stone (*motinėlė*).
3. For each required pickup in the current stage, the agent specifies the target stone subset with .
4. Stochastic resolution determines whether the action succeeds:
[gap-fill].
R4. Fault Conditions: A fault occurs if:
- The catch fails (stochastic draw fails).
- An incorrect number of stones is gathered ().
- Unintended collision: During pickup, any resting stone is perturbed within radius [gap-fill].
R5. Checkpointing and Turn Handoff: Upon committing a fault, the turn ends immediately. The agent's current stage index and sub-step index are preserved in persistent state. Turn passes to the next active agent .
R6. Win Condition: The first agent to complete the final scoop of Stage 5 without an unresolved fault wins immediately, terminating the game.
## Edge cases
- Tie at the end condition: Not applicable — turns are strictly sequential; the first agent to complete Stage 5 terminates the match immediately without sharing the win.
- A player with no legal move: Not applicable — a toss and subset selection is always legal and available on an agent's turn.
- Repetition / cycles (and the loop-breaking rule): Since agents retain progress across rotations and success probability for all valid actions, the game cannot enter an infinite loop; maximum turns can be capped at rounds [gap-fill].
- Simultaneous claims on the same resource or position: Not applicable — only one agent interacts with the stones at any given instant.
- Player elimination mid-round; turn order repair: Not applicable in standard play; if an agent forfeits, turn order skips to the next index in rotation.
- Resource exhaustion (pieces, tokens, space, time): Not applicable — the 5 stones are perpetual, never consumed or removed.
- Termination guarantee: Provably terminates almost surely because each stage has a finite number of sub-steps ( successful throws total), state progress is monotonic non-decreasing, and transition probabilities are bounded away from zero.
## State representation
- Persistent state:
- Number of agents .
- Current active agent index .
- Per-agent progress: for each agent .
- Per-turn ephemeral state:
- Stone 2D coordinates .
- Active toss stone index .
- Target subset indices .
- Observable information: Fully observable — all stone coordinates, agent progress levels, and toss outcomes are public knowledge.
## Action space
- `select_toss_stone(stone_id)`: Designate which stone is thrown vertically.
- `attempt_pickup(target_ids)`: Specify which resting stones to gather during the toss flight window.
- `pass_turn()`: Forfeit/end turn following a resolved fault.
## Playability notes
- Single-player-vs-AI: Completely natural — can be played as a solitaire time-trial or speedrun challenge, or head-to-head against an AI agent parameterized with a target skill rating.
- Group games (n>4): Scales seamlessly up to 6 players; turn rotation remains identical, though downtime between turns increases linearly with player count.
- Physical-skill games: Physical dexterity is captured via target selection strategy (clustering optimization) combined with stochastic logistic curves.
- What is lost: The tactile sensation of cold river pebbles, finger muscle memory, catch reflex timing, and micro-adjustments under physical pressure are replaced by statistical draws.
## Implementation hints
Extremely straightforward state machine and turn loop. The primary design choice is the spatial scatter generator and the proximity penalty function to reward picking clustered pairs while penalizing cramped layouts.
First milestone: Implement the 5-stage sequential progression logic (R1–R6) with deterministic success, verifying that checkpointing and win detection function properly.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Five Stones / Jacks (Lithuania). (n.d.). Games of Countries. https://gamesofcountries.com/games/lt-lithuania/akmenukai
@misc{gamesofcountries-lt-lithuania-akmenukai,
title = {Five Stones / Jacks (Lithuania)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/lt-lithuania/akmenukai}
}