Skip to main content
Formal Specification

Five Stones (Egyptian Knucklebones) — Formal Specification

Egypt · dexterity-small · Confidence: medium

← Back to game page

Implementation 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 Ds, stone grouping count k, and agent dexterity attribute θdex. - **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 s∈{1..6}: - Stage 1 (Ones): 4 sequential catches of 1 stone each. Difficulty D1=0.15. - Stage 2 (Twos): 2 sequential catches of 2 stones each. Difficulty D2=0.25. - Stage 3 (Threes): 1 catch of 1 stone + 1 catch of 3 stones. Difficulty D3=0.35. - Stage 4 (Fours): 1 catch of 4 stones simultaneously. Difficulty D4=0.45. - Stage 5 (Bridge): 4 flick-and-catches through an arch. Difficulty D5=0.50. - Stage 6 (Back-of-Hand): Toss 5 stones, catch k≤5 on back of hand, flip and snatch in mid-air. Points awarded =k×2. Difficulty per stone =0.20. R2. Probability of stage success: P(success|s)=max⁡(0.1,1.0−Ds+0.1×(θdex−1.0)) R3. Turn Progression: - If Stage s<6 succeeds: agent advances to Stage s+1 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 N 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 JSON
Cite 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}
}