Skip to main content
Formal Specification

Knucklebones (Galaha / Zhua Yangguai) — Formal Specification

China · dexterity-small · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 3
# Zhua Guai — AI-optimized specification ## General idea A traditional northern Chinese/Manchu dexterity and knucklebone tossing game (*Galaha*) where players toss a small sandbag beanbag into the air and, while it is airborne, snatch, flip, and manipulate 4 animal astragalus (ankle) bones on a flat mat before catching the falling beanbag with the same hand. Each knucklebone has four distinct anatomical orientations: **Pit (坑, *Keng*)**, **Back (背, *Bei*)**, **Pin (珍, *Zhen*)**, and **Wheel (轮, *Lun*)**. Players execute multi-stage manipulation routines while avoiding four strict fault conditions. ## Formal model - **Abstraction taken:** Rapid hand-eye coordination, finger dexterity, and airborne catching physics are modeled as a stage-difficulty probabilistic state machine with individual bone face point values and foul penalty transitions. - **Player/agent count:** 2 to 4 players competing individually. - **Turn model:** Sequential alternating turns; an active player continues executing stages until committing a fault (*Fanling*). ## Formal rules R1. Equipment Setup: 4 identical knucklebones and 1 beanbag (*buzai*). Each bone has 4 possible resting faces with distinct point values: - *Keng* (Concave Pit): Value = 1 pt. - *Bei* (Convex Back): Value = 1 pt. - *Zhen* (Smooth Flank): Value = 2 pts. - *Lun* (Indented Wheel): Value = 2 pts. R2. Stage Sequence: - **Stage 1 (Single Pick / 捡单):** Scatter 4 bones. Toss beanbag, pick up 1 bone, and catch beanbag. Repeat 4 times. - **Stage 2 (Orientation Matching / 摆样):** Toss beanbag and flip non-matching bones to a target face (e.g. all to *Keng*) one by one between tosses, then scoop all 4 in a final single toss. - **Stage 3 (Pairs and Quads / 捡对与全收):** Scoop 2 bones simultaneously per toss, or all 4 bones in one grab. R3. Toss-and-Catch Probability: - Success probability of manipulating bone(s) and catching beanbag: P(success)=1.0−(stage_difficulty+bones_grabbed⋅0.10−0.25⋅dexterity) R4. Four Mandatory Faults (*Fanling* / 犯规): A player's turn ends immediately if: - **Dong (动):** Inadvertently jogging or touching an unintended bone during a pickup (P(touch_fault)∼scatter_proximity). - **Pao (跑 / 掉):** Dropping the beanbag or failing to catch it before it lands. - **Lou (漏):** Dropping a previously gathered bone from the palm while catching. - **Dian (垫):** The beanbag lands on top of an uncalled bone. R5. Resumption: Upon committing a fault, the turn passes to the next player. When the faulted player's turn arrives again, they resume at the exact stage where the fault occurred. R6. Win Condition: The first player to reach a predetermined target score T=50 points (or complete all 3 trick stages) wins the match. R7. [gap-fill] Initial Scatter Distribution: When bones are scattered, each bone's face is sampled independently: P(Keng)=0.35,P(Bei)=0.35,P(Zhen)=0.15,P(Lun)=0.15 R8. [gap-fill] Round Cap: If no player reaches 50 points within 40 total rounds, the player with the highest cumulative score wins. R9. [gap-fill] Trick Hand Bonus (*Hui Shou Jia Bian*): Successfully executing an advanced sweep maneuver around a bone grants a +5 point bonus. ## Edge cases - **Tie at the end condition:** Turns are sequential, so the first agent to reach target score T wins immediately. Under R8 round cap, ties are broken by total Stage 3 clears. - **A player with no legal move:** Not applicable; an active player always attempts the current stage action. - **Repetition / cycles:** Players cycle through stages to accumulate points; bounded by R8's 40-round cap. - **Simultaneous claims on the same resource or position:** Not applicable (strictly sequential individual turns). - **Player elimination mid-round:** Not applicable; all players remain active until a victor emerges. - **Resource exhaustion:** The 4 bones and 1 beanbag are permanent and reused every turn. - **Termination guarantee:** Provably terminates within 40 rounds by R8. ## State representation - **Persistent state:** `scores[player_id]`, `current_stage[player_id] (1..3)`, `round_counter (0..40)`. - **Ephemeral state:** `bone_faces[4]` (each in {K,B,Z,L}), `bones_on_mat_count`, `active_player_index`, `beanbag_airborne_flag`. - **Observable information:** Fully observable mat state, bone orientations, and scoreboard. ## Action space - `scatter_bones()`: Initialize bone faces at start of stage. - `attempt_toss_and_pick(target_bone_ids, target_face_flip)`: Commit manipulation and catch attempt. ## Playability notes - **Single-player-vs-AI:** Highly playable as a precision timing and probability management game. - **Group games (n>4):** Scales naturally to 4 players taking turns around the mat. - **Physical-skill games:** Physical finger speed, spatial spacing of bones, and palm grasping are mapped to proximity calculations and catch success probabilities. - **What is lost in the adaptation:** The physical tactile smoothness of polished sheep ankle bones, the warmth of playing on a northern *kang* brick bed, and hand-swapping rhythms. ## Implementation hints Finite state machine tracking 3 stages and a 4-element bone state array. Fault checks and scatter generators require only basic discrete probability sampling.

Download as JSON

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

Download JSON
Cite this page

Knucklebones (Galaha / Zhua Yangguai) (China). (n.d.). Games of Countries. https://gamesofcountries.com/games/cn-china/zhua-guai

@misc{gamesofcountries-cn-china-zhua-guai,
  title = {Knucklebones (Galaha / Zhua Yangguai) (China)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/cn-china/zhua-guai}
}