Skip to main content
Formal Specification

Lao Jackstones / Five Pebbles — Formal Specification

Laos · dexterity-small · Confidence: high

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 4
# Mak Kep — AI-optimized specification ## General idea Mak Kep is a traditional Lao childhood jackstones game played with five small pebbles or tamarind seeds. A player tosses an airborne leader stone (*mak nam*) upward and rapidly scoops up specified quantities of ground stones from a scattered layout before catching the descending leader in the same hand. Players advance through Stages 1 through 4 (picking 1, 2, 3, and 4 stones) into a Stage 5 scoring toss ("weighing" on the back of the hand). Any drop or illegal contact with adjacent stones ends the turn immediately, with progress preserved until the next rotation. ## Formal model - **Abstraction taken:** Hand kinematics, finger dexterity, spatial scattering distances, and mid-air catch timing are abstracted into parameterized success probabilities. Each scoop attempt calculates success as a function of stone cluster distances and required scoop count. - **Player/agent count:** 2 to 6 agents (P1…Pn) in fixed turn rotation. - **Turn model:** Sequential turn progression; an agent continues attempting stages until committing a foul (*tai* / death). ## Formal rules R1. Setup: - 5 identical tokens (1 active airborne leader M0, 4 ground tokens M1…M4). - Target score Starget=50 points [gap-fill: standard 50-point game]. - Each player maintains persistent state: `current_stage` ∈{1,2,3,4,5}, `sub_step` ∈ℕ, and `score` ∈ℕ. R2. Stage Progression: - **Stage 1 (Kep Neung):** 4 sequential tosses; scoop 1 stone per toss (4×1). - **Stage 2 (Kep Song):** 2 sequential tosses; scoop 2 stones per toss (2×2). - **Stage 3 (Kep Sam):** 2 sequential tosses; scoop 3 stones on toss 1, then 1 stone on toss 2. - **Stage 4 (Kep Si):** 1 toss; scoop all 4 stones simultaneously. R3. Stage 5 (Mak Chang / Weighing & Scoring): - Player tosses all 5 stones from palm, catches k1 stones on the back of the hand (k1∼Binomial(5,pback)), then flips and catches k2≤k1 stones in palm (k2∼Binomial(k1,ppalm)). - Points awarded: score←score+(k2×10). - Upon completing Stage 5, `current_stage` resets to 1 for future turns [gap-fill]. R4. Scoop Attempt Execution: - For a scoop of count c, success probability P(success)=f(skill,c,dispersion)=max⁡(0.10,skill−0.12⋅c−0.05⋅dispersion) [gap-fill]. - If success: Ground stones are collected, leader stone is caught; player advances to the next sub-step or stage. - If foul (drop leader, touch wrong stone, wrong count): Turn ends immediately (*tai*); current stage and sub-step are preserved. R5. Turn Turnover: - When a foul occurs, the turn passes to the next player (i+1)(modn). - On a player's subsequent turn, they resume at their preserved `current_stage` and `sub_step`. R6. Win Condition: - The first player to reach or exceed Starget=50 points wins immediately. ## Edge cases - **Tie at the end condition:** Not applicable; turns are strictly sequential, and the first player to achieve 50 points triggers immediate victory. - **A player with no legal move:** Not applicable; on a player's turn, attempting the current stage scoop or weighing toss is always mandatory and legal. - **Repetition / cycles:** Progress is monotonically bounded by score accumulation; infinite loops without scoring are broken by setting a maximum round cap of 50 rotations [gap-fill]. - **Simultaneous claims on the same resource or position:** Not applicable; turns are strictly sequential with a single set of 5 stones. - **Player elimination mid-round; turn order repair:** Not applicable; all players remain in rotation until victory. - **Resource exhaustion:** Exactly 5 tokens are used throughout the entire match; none are permanently removed. - **Termination guarantee: why the game provably ends:** Every complete cycle through Stage 5 yields an expected positive score (𝔼[ΔS]>0), ensuring some player reaches Starget in a finite number of rounds. ## State representation - Persistent state: Player scores (s1…sn), player stage pointers (stage1…stagen), active player index i∈{1…n}. - Per-turn ephemeral state: Ground stone dispersion coordinates (x1…x4), target scoop subset, sampled throw/scoop success outcome. - Observable information: Fully observable — all stone positions, player stages, scores, and toss results are visible to all players. ## Action space - `scatter_and_scoop(target_indices)`: Scatter stones and declare target subset to scoop while leader is airborne. - `weigh_toss()`: Execute Stage 5 palm-to-back-of-hand scoring toss. ## Playability notes - Single-player-vs-AI: Natural and engaging solitaire or head-to-head race to 50 points, managing risk on Stage 5 catches. - Group games (n>4): Plays cleanly with up to 6 players; waiting time between turns mirrors traditional village social play. - Physical-skill games: Fine motor control and quick-snatch reflexes are modeled via binomial catch distributions and cluster difficulty penalties. - What is lost in the adaptation: The physical sensation of smooth river pebbles touching the skin, split-second visual tracking, and finger flick dexterity. ## Implementation hints Structure player progression as a linear array of sub-goals (e.g. 10 discrete sub-steps from Stage 1.1 to Stage 5). Milestone 1: Implement the deterministic stage machine and foul preservation logic; Milestone 2: Implement the stochastic scoop and weighing model with configurable player skill attributes.

Download as JSON

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

Download JSON
Cite this page

Lao Jackstones / Five Pebbles (Laos). (n.d.). Games of Countries. https://gamesofcountries.com/games/la-laos/mak-kep

@misc{gamesofcountries-la-laos-mak-kep,
  title = {Lao Jackstones / Five Pebbles (Laos)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/la-laos/mak-kep}
}