Formal Specification
Five Stones (Egyptian Knucklebones) — Formal Specification
Egypt · dexterity-small · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 2
# Khamsa f-Eyn El-Hasood — AI-optimized specification
## General idea
A sequential dexterity progression game where agents attempt a fixed sequence of 6 stone-catching stages (Ones through Fours, Bridge, and Back-of-Hand snatch). Success on each stage depends on risk-reward grouping choices and dexterity parameters, accumulating points towards victory.
## Formal model
- **Abstraction taken:** Rapid physical hand tosses and airborne finger catches are modeled as probabilistic checks parameterized by stage difficulty , stone grouping count , and agent dexterity attribute .
- **Player/agent count:** 2 to 4 agents (sequential turns).
- **Turn model:** Sequential; active agent continues attempting stages until a fault occurs.
## Formal rules
R1. Stages are indexed :
- Stage 1 (Ones): 4 sequential catches of 1 stone each. Difficulty .
- Stage 2 (Twos): 2 sequential catches of 2 stones each. Difficulty .
- Stage 3 (Threes): 1 catch of 1 stone + 1 catch of 3 stones. Difficulty .
- Stage 4 (Fours): 1 catch of 4 stones simultaneously. Difficulty .
- Stage 5 (Bridge): 4 flick-and-catches through an arch. Difficulty .
- Stage 6 (Back-of-Hand): Toss 5 stones, catch on back of hand, flip and snatch in mid-air. Points awarded . Difficulty per stone .
R2. Probability of stage success:
R3. Turn Progression:
- If Stage succeeds: agent advances to Stage immediately.
- If Stage 6 succeeds: agent adds scored points to `total_score` and loops back to Stage 1.
- If any stage attempt fails (foul): turn ends immediately; agent resumes at the failed stage on their next turn.
R4. [gap-fill] Turn Limit: Match ends after 10 full turn rotations across all players.
R5. [gap-fill] Win Condition: First agent to reach 20 points (or highest score at turn 10) wins.
## Edge cases
- Tie at the end condition: If top scores are tied at turn 10, tied agents execute one sudden-death Stage 6 throw.
- A player with no legal move: Action space is fixed; agent always attempts the current stage.
- Repetition / cycles: Bounded by the 10-rotation hard limit (R4).
- Simultaneous claims on the same resource or position: Turns are strictly sequential.
- Player elimination mid-round; turn order repair: No mid-round elimination; fixed circular order.
- Resource exhaustion (pieces, tokens, space, time): Only 5 stones in fixed use; turns strictly expire at 10.
- Termination guarantee: Guaranteed by the 10-rotation limit.
## State representation
- Persistent state:
- `agent_states`: map of `agent_id` to `{current_stage: int in 1..6, score: int}`.
- `active_agent_index`: integer in `0..n-1`.
- `rotation_count`: integer in `0..10`.
- Observable information: Fully observable by all agents.
## Action space
- `attempt_stage(stage_id)`: execute the probabilistic trial for the current stage.
## Playability notes
- Single-player-vs-AI: Natural; play as solitaire high-score challenge or race against AI opponent.
- Group games (n>4): Generalizes cleanly to any agents.
- Physical-skill games: Fine motor coordination and finger speed are captured in the stage difficulty hierarchy.
- What is lost in adaptation: The tactile sensation of stones sliding over knuckles and physical hand bridge placement.
## Implementation hints
Extremely simple 6-state progression model. First milestone: implement state machine transitions and Stage 6 score accumulation before tuning dexterity modifiers.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Five Stones (Egyptian Knucklebones) (Egypt). (n.d.). Games of Countries. https://gamesofcountries.com/games/eg-egypt/khamsa-f-eyn-el-hasood
@misc{gamesofcountries-eg-egypt-khamsa-f-eyn-el-hasood,
title = {Five Stones (Egyptian Knucklebones) (Egypt)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/eg-egypt/khamsa-f-eyn-el-hasood}
}