Formal Specification
Five Pebbles / Jacks — Formal Specification
Pakistan · dexterity-small · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 1
# Mirgati / Geete — AI-optimized specification
## General idea
A turn-based sequential hand-dexterity game where a single player progresses through an ordered hierarchy of 5 pebble-scoop stages (1s, 2s, 3s, 4s, Tunnel). Each sub-action requires tossing an airborne pebble, scooping a precise partition of ground pebbles, and catching the airborne pebble with the same hand. A failure immediately yields the turn to the next player, saving stage progression.
## Formal model
- **Abstraction taken:** Hand-eye motor coordination and spatial stone proximity are abstracted into a stochastic success check `P(success | stage, skill, proximity)`.
- **Player/agent count:** 2 to N players (standard `N = 2`).
- **Turn model:** Sequential turn rotation; player continues taking actions until a stochastic failure occurs or a full cycle is completed.
## Formal rules
R1. Setup: 5 pebble tokens `p_1..p_5`. Each player `i` starts with `current_stage[i] = 1` (where stages are `{1: Ones, 2: Twos, 3: Threes, 4: Fours, 5: Tunnel}`), `sub_step[i] = 0`, and `total_score[i] = 0`.
R2. Stage Execution:
- On active turn, player `i` executes an action for `current_stage[i]`:
- Stage 1 (Ones): 4 sequential single-stone scoops.
- Stage 2 (Twos): 2 sequential double-stone scoops.
- Stage 3 (Threes): 1 triple-stone scoop + 1 single-stone scoop.
- Stage 4 (Fours): 1 quadruple-stone scoop.
- Stage 5 (Tunnel): 4 sequential tunnel-flick scoops.
R3. Stochastic Resolution:
- Each scoop action resolves a success roll:
`P(success) = skill_rating[i] * (1.0 - 0.08 * (stage - 1))`.
- If success: `sub_step[i]` increments. If all sub-steps for the stage complete, `current_stage[i] += 1` and `sub_step[i] = 0`.
- If failure: Turn ends immediately. State `(current_stage[i], sub_step[i])` is saved for the player's next turn. Turn passes to player `(i mod N) + 1`.
R4. Scoring Stage (Back-of-Hand Catch):
- When player `i` completes Stage 5: Player enters Scoring Stage.
- Player executes back-of-hand toss: `caught_count` is sampled from Binomial distribution `B(n=5, p=skill_rating[i])`.
- `total_score[i] += caught_count * 20`.
- `current_stage[i] = 1`, `sub_step[i] = 0`.
R5. Win condition: The first player to reach `total_score >= 100` points wins immediately.
R6. [gap-fill] Max cycle cap: If neither player reaches 100 points after 50 complete player rotations, the player with the higher accumulated score wins.
## Edge cases
- **Tie at the end condition:** Handled by exact turn-based score thresholding (first to 100 wins on their turn; no ties).
- **A player with no legal move:** Attempting the current stage action is always legal.
- **Repetition / cycles:** Bounded by score threshold (100 points) and hard turn cap (R6).
- **Simultaneous claims on the same resource or position:** Not applicable; turns are strictly sequential.
- **Player elimination mid-round:** Not applicable; all players remain active in turn rotation until victory condition is satisfied.
- **Resource exhaustion:** 5 pebble tokens are permanent state entities.
- **Termination guarantee:** Guaranteed by non-zero probability of stage completion and score accumulation per cycle.
## State representation
- **Persistent state:** `total_score[1..N]`, `current_stage[1..N] in {1..5}`, `sub_step[1..N]`, `active_player_idx in {1..N}`, `cycle_counter`.
- **Per-action ephemeral state:** Sampled success boolean, `caught_count in {0..5}`.
- **Observable information:** Fully observable game state (scores, stages, and action histories).
## Action space
- `execute_scoop()`: Trigger scoop action for the active stage.
- `execute_scoring_toss()`: Trigger final back-of-hand point catch.
## Playability notes
- **Single-player-vs-AI:** Natural; human player tests timing and skill modifiers while racing AI score accumulation.
- **Group games (n>4):** Sequential turn rotation extends cleanly to any player count.
- **Physical-skill games:** Finger dexterity and catch reflexes are parameterized via the stage-difficulty probability curve.
- **What is lost:** The tactile balancing of pebbles on the dorsal skin of the hand and the sharp click of stones in the palm.
## Implementation hints
Low complexity. A pure finite state machine with 5 stages and a binomial point evaluator. Implement the stage state transitions and progress saving first.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Five Pebbles / Jacks (Pakistan). (n.d.). Games of Countries. https://gamesofcountries.com/games/pk-pakistan/mirgati
@misc{gamesofcountries-pk-pakistan-mirgati,
title = {Five Pebbles / Jacks (Pakistan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pk-pakistan/mirgati}
}