Formal Specification
Cantonese Five Stones (Knucklebones / Grab Stones) — Formal Specification
Hong Kong · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 5
# Zaa Sek Zai — AI-optimized specification
## General idea
A sequential fine-motor dexterity and hand-eye coordination game based on Hong Kong *Zaa Sek Zai* (Cantonese Five Stones). Players toss a "Mother Stone" airborne while executing an escalating 7-stage sequence of ground grabs (singles, pairs, triplets, sweeps, hand-claps, bridge flicks, and back-of-hand flips) without dropping the airborne stone or jostling adjacent pebbles.
## Formal model
- **Abstraction taken:** Rapid physical tossing, hand-scooping biomechanics, and spatial pebble clearance are formalized as a discrete 7-stage state machine. Airborne toss time windows and grab accuracy are modeled as spatial distance-conditioned probability distributions.
- **Player/agent count:** 1 to 4 players taking sequential turns in fixed cyclic order.
- **Turn model:** Sequential progression. An active player attempts stage tasks continuously until committing a fault, at which point play passes to the next player.
## Formal rules
R1. **Setup & Scatter:** The active player scatters 5 stones onto a 2D tabletop domain meters. One stone is designated the Mother Stone (), leaving 4 ground target stones .
R2. **The 7-Stage Progression:**
- *Stage 1 (單執 / Singles):* Toss , pick up 1 stone, catch . Repeat 4 times for all individual ground stones.
- *Stage 2 (雙執 / Pairs):* Toss , scoop 2 stones in one sweep, catch . Repeat for the remaining 2 stones.
- *Stage 3 (執三粒 / Triplets):* Scoop 3 stones together, then scoop the single remaining stone.
- *Stage 4 (掃四粒 / Quartet Sweep):* Toss , scoop all 4 ground stones in a single sweep, and catch .
- *Stage 5 (拍掌 / Clap):* Toss , execute 1 hand-clap, and catch .
- *Stage 6 (穿橋 / Bridge Flick):* Form an arch with the off-hand; toss , flick 1 ground stone through the arch, and catch . Repeat for all 4 stones.
- *Stage 7 (拋手背 / Back-of-Hand Flip):* Toss all 5 stones, catch stones on the back of the hand, toss again, and catch in palm. Each secured stone scores points.
R3. **Execution & Fault Conditions:**
- For each sub-grab in a stage, the engine evaluates a success probability conditioned on spatial separation of stones.
- **Drop Fault:** Failing to catch the falling Mother Stone immediately ends the turn.
- **Touch Fault (郁石):** Inadvertently brushing or moving an unselected adjacent stone during a grab ends the turn.
R4. **Checkpoint Preservation:** When a player faults, their turn ends immediately. On their subsequent turn, they resume at the start of the specific stage they failed.
R5. **Victory Condition:** The first player to complete Stage 7 and reach the target score () wins the match.
R6. [gap-fill] Tabletop scatter modeled as 5 random 2D points sampled uniformly on with minimum separation .
R7. [gap-fill] Base stage success probabilities: per attempt.
R8. [gap-fill] Touch-fault risk: When scooping target stones, if any non-target stone lies within distance , an extra touch-fault probability is evaluated.
R9. [gap-fill] Stage 7 scoring distribution: Number of stones caught on back of hand is sampled from Binomial distribution ; palm flip retains stones.
R10. [gap-fill] Loop-breaking turn cap: Maximum 30 total player turns per match; if uncompleted, player with highest total score wins; ties broken by highest stage reached.
## Edge cases
- **Tie at the end condition:** Deterministically broken by R10 (highest total score, then highest stage checkpoint).
- **A player with no legal move:** On their turn, the active player always executes the grab actions required by their current stage.
- **Repetition / cycles:** Players repeatedly failing high-difficulty stages are bounded by R10's 30-turn limit.
- **Simultaneous claims on the same resource or position:** Turns are strictly sequential for one player at a time.
- **Player elimination mid-round:** Not applicable (all players rotate turns).
- **Resource exhaustion:** Stones are fixed at 5; stage progression terminates at Stage 7.
- **Termination guarantee:** Guaranteed by absorbing victory state (Score in Stage 7) and R10's 30-turn hard cap.
## State representation
- **Persistent state:** `target_score: 50`, `max_turns: 30`.
- **Per-player state:**
- `current_stage: int` ()
- `score: int`
- `fault_count: int`
- **Per-turn ephemeral state:**
- `active_player: int`
- `stone_positions: List[Tuple[float, float]]`
- `sub_step: int`
- `turn_counter: int`
- **Observable information:** Fully observable 2D state. Table stone coordinates, current stage checkpoints, and player scores are public.
## Action space
- `scatter_stones()`: Scatters 5 stones onto table. Preconditions: start of turn.
- `execute_grab(target_stone_ids)`: Executes the required stage grab action. Preconditions: active player, valid stage target.
- `flick_bridge(stone_id)`: Preconditions: Stage 6 active.
- `flip_hand_back()`: Preconditions: Stage 7 active.
## Playability notes
- **Single-player-vs-AI:** Excellent as a solitaire skill optimization game or turn-based race against bot agents.
- **Group games (n>4):** Scales cleanly from 1 to 4 players in standard sequential rotation.
- **Physical-skill games:** Physical hand speed, finger dexterity, and peripheral spatial awareness are abstracted into stage success distributions and proximity-based touch-fault risks.
- **What is lost in the adaptation:** Physical coolness of river pebbles against fingers, tactile rhythm of catching stones against the palm, and sound of stones clacking on wooden desks.
## Implementation hints
- Represent game state as an explicit 7-stage finite state machine.
- Generate 2D coordinates for the 5 stones at the start of each turn to evaluate proximity penalties dynamically.
- Branching factor: Mostly linear deterministic action execution per stage, with discrete choice of target clusters in Stages 1–3 ( choices).
- First milestone: Headless single-player simulation running through all 7 stages and computing mean turns required to reach 50 points over 1,000 iterations.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Cantonese Five Stones (Knucklebones / Grab Stones) (Hong Kong). (n.d.). Games of Countries. https://gamesofcountries.com/games/hk-hong-kong/zaa-sek-zai
@misc{gamesofcountries-hk-hong-kong-zaa-sek-zai,
title = {Cantonese Five Stones (Knucklebones / Grab Stones) (Hong Kong)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/hk-hong-kong/zaa-sek-zai}
}