Skip to main content
Formal Specification

Plundering the Khan — Formal Specification

Kyrgyzstan · dexterity-small · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 0
# Khan talamai — AI-optimized specification ## General idea A traditional knucklebone dexterity game combining discrete orientation matching with an explosive reaction-speed scramble mechanic. When knucklebones are cast, if the master "Khan" bone lands on its flat side (*Taa*), all agents simultaneously scramble to grab as many pieces as possible; otherwise, the active player takes precision finger-flick shots targeting identical bone aspects. ## Formal model - **Abstraction taken:** The 4-sided geometry of sheep knucklebones is mapped to a discrete 4-state outcome distribution: `Alchy` (20%), `Taa` (20%), `Bök` (30%), `Chik` (30%). Finger-flick trajectory precision is modeled with a collision hit-check. - **Player/agent count:** 2 to 6 agents. - **Turn model:** Alternating turns for casting/flicking, transitioning to simultaneous real-time reaction-check upon Khan scramble trigger. ## Formal rules R1. Setup: Board initialized with 50 standard knucklebones + 1 Khan. All pieces held in active player pool. R2. The Cast (*Калчоо*): - Active player rolls all remaining pieces onto the 2D surface. - Each piece samples an orientation: `{Alchy, Taa, Bok, Chik}`. R3. Branch 1 — The Scramble (*Хан таламай!*): - If `Khan.orientation == Taa`: - A scramble event triggers. All agents submit a reaction-grab vector within a 500ms simulated window. - Number of pieces grabbed per agent: `count_i = floor(remaining_pieces * (speed_i / sum_speed))`. - The agent with the fastest reaction grab claims the Khan piece (+5 points). - Round ends; remaining pieces reset to next player. R4. Branch 2 — Precision Flicking (*Чертүү*): - If `Khan.orientation != Taa`: - Active player must declare a pair of un-captured bones sharing the exact same orientation `(bone_A, bone_B)`. - Player executes `flick(bone_A, target=bone_B)`. - If line-of-sight is clear and hit roll succeeds without touching other bones: player captures both bones (+2 points) and continues turn. - If the shot misses or touches an illegal third bone: turn ends immediately (*жыдымай*), passing to next player clockwise. R5. Win Condition: Game terminates when 0 pieces remain on the board. The agent with the highest captured piece tally (plus Khan bonuses) wins. ## Edge cases - Tie at the end condition: Possessor of the Khan piece wins ties deterministically. - A player with no legal move: If no matching pairs exist after a non-scramble roll, turn passes to next player to re-cast. - Repetition / cycles: Knucklebones are permanently removed upon capture, guaranteeing strict monotonicity. - Simultaneous claims on the same resource: Handled by reaction-speed proportional allocation during the scramble phase (R3). - Player elimination mid-round; turn order repair: None; all players remain active until pieces reach 0. - Resource exhaustion: Guaranteed end when all 51 pieces are claimed. - Termination guarantee: Number of free pieces strictly decreases each round. ## State representation - Persistent state: Scores per player (uint8 array), Khan owner ID (int8), pieces remaining on board (uint8), active player index. - Board entity state: Array of 51 piece structs `{id, pos_x, pos_y, orientation, captured_by}`. - Ephemeral state: Scramble reaction timestamps. - Observability: Complete visibility of all piece positions and orientations. ## Action space - `cast_bones()`: Roll active pool (stochastic state update). - `flick_bone(source_id, target_id, aim_angle, power)`: Precision flick action. - `react_scramble(timestamp)`: Reaction timestamp submitted during scramble trigger. ## Playability notes - Single-player-vs-AI: Highly playable; AI reaction times calibrated against human average (200–300ms). - Group games (n=2..6): Smoothly scalable; scramble mechanic creates high engagement for all players on every turn. - Physical skill: Abstracted into flick accuracy rolls and reaction latency checks. - What is lost: The tactile pleasure of shaking and clattering dry bones in the palm. ## Implementation hints Moderate complexity. Can be built with a simple 2D collision check for flicking and a timer-based event queue for the scramble trigger. First milestone: implement the 4-state orientation distribution and flick pair-matching before adding the scramble phase.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Plundering the Khan (Kyrgyzstan). (n.d.). Games of Countries. https://gamesofcountries.com/games/kg-kyrgyzstan/khan-talamai

@misc{gamesofcountries-kg-kyrgyzstan-khan-talamai,
  title = {Plundering the Khan (Kyrgyzstan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/kg-kyrgyzstan/khan-talamai}
}