Formal Specification
Bury the Bead — Formal Specification
Iraq · guessing-hidden · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 1
# Tumm Khurayza — AI-optimized specification
## General idea
A traditional Iraqi sand-pile guessing game. The hider forms 5 or 7 identical conical piles of dry sand and secretly buries a small bead (*Khurayza*) under one of them. The guesser sweeps away empty sand piles to isolate the bead, awarding points to the hider for empty piles while aiming to find the bead on the opening turn.
## Formal model
- **Abstraction taken:** Sand piles modeled as a set of identical buckets . Bead location is an integer .
- **Player/agent count:** 2 to 4 players (1 `Hider`, `Guessers` taking turns).
- **Turn model:** 1 Secret Hiding Phase, followed by sequential pile eliminations by the active guesser.
## Formal rules
R1. **Setup & hiding:** Hider sets up piles and secretly assigns bead index . Piles are smoothed flat.
R2. **Elimination sequence:** Guesser selects sand piles one by one:
- **First-attempt hit:** If the guesser chooses pile on their very first attempt of the round: 0 points awarded, and guesser immediately wins the right to hide.
- **Empty pile swept:** If the chosen pile is empty, it is removed. Hider scores **1 point**.
- **Subsequent hit:** If guesser chooses pile on attempt :
- Round ends.
- Hider scores all points accumulated in this round ( points).
- Hider retains the right to hide in the next round.
- **All empty piles cleared:** If guesser clears all 4 empty piles leaving only , hider scores 4 points, and guesser earns the right to hide in the next round [gap-fill].
R3. **Victory condition:** First player to accumulate 20 points wins the match.
## Edge cases
- **Tie at the end condition:** Sudden death round if score ties at .
- **A player with no legal move:** Guesser selects among remaining piles.
- **Repetition / cycles:** Maximum 5 selections per round.
- **Simultaneous claims:** Turn-based choice.
- **Player elimination mid-round:** Not applicable.
- **Resource exhaustion:** 5 sand piles, persistent.
- **Termination guarantee:** Provably terminates via monotonic point accumulation towards 20.
## State representation
- **Persistent state:** `scores: Dict[PlayerID, int]`, `active_hider: PlayerID`.
- **Ephemeral state:** `bead_pile: int \in [0,4]`, `remaining_piles: Set[int]`, `sweeps_in_round: int`.
- **Observable information:** Guessers observe remaining pile indices and behavioral features.
## Action space
- `bury_bead(pile_id)`: Hider action.
- `sweep_pile(pile_id)`: Guesser action.
## Playability notes
- **Single-player-vs-AI:** Operates as a shell-game deduction/risk puzzle.
- **Group games (n>4):** Scales cleanly with multiple guessers.
- **Physical-skill games:** Micro-expression reading mapped to observation features.
- **What is lost:** Soft sand/flour texture under fingers, shady courtyard breeze, and sweet laughter.
## Implementation hints
Discrete state machine with integer score counter and random target generation.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Bury the Bead (Iraq). (n.d.). Games of Countries. https://gamesofcountries.com/games/iq-iraq/tumm-khurayza
@misc{gamesofcountries-iq-iraq-tumm-khurayza,
title = {Bury the Bead (Iraq)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/iq-iraq/tumm-khurayza}
}