Skip to main content
Formal Specification

Knucklebone horse race — Formal Specification

Mongolia · board-race · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Shagai mori uralduulakh — AI-optimized specification ## General idea A turn-based linear race game where each agent controls a racehorse piece traversing a track of `N` waypoints. On each turn, the agent casts 4 sheep astragali simultaneously; each knucklebone landing on the "Horse" stance advances the horse by 1 space, while special combinations like *Dörvön berkh* trigger acceleration bursts. ## Formal model - **Abstraction taken:** The 4-knucklebone casting is modeled as a 4-sample multinomial random variable over the 4 anatomical stances `{Horse, Camel, Sheep, Goat}` with ethnographically grounded asymmetric landing probabilities: `P(Horse) ≈ 0.15`, `P(Camel) ≈ 0.15`, `P(Sheep) ≈ 0.35`, `P(Goat) ≈ 0.35`. - **Player/agent count:** 2 to 6 players (default 4). - **Turn model:** Sequential discrete turns, rotating in fixed clockwise order. ## Formal rules R1. Setup: A track of length `TRACK_LENGTH = 30` spaces is indexed `0` (Starting post / *Uyaa*) to `30` (Finish line / *Barian*). R2. All player horses start at position `0` in the "Facing Away" state (`facing_forward = false`). R3. Turn cast: On their turn, an agent casts 4 knucklebones, sampling `outcome = (n_horse, n_camel, n_sheep, n_goat)` such that the sum equals 4. R4. Starting orientation: - If `facing_forward == false`: - If `n_horse >= 1`: The horse turns to face the track (`facing_forward = true`) and advances `n_horse - 1` spaces forward. - If `n_horse == 0`: The horse remains facing away; advance = 0. R5. Regular track advance: - If `facing_forward == true`: The horse advances forward by `n_horse` spaces: `pos = pos + n_horse`. R6. Special combination bonus: - If `outcome == (1, 1, 1, 1)` (*Dörvön berkh* — all 4 distinct animals): The horse surges forward by 4 spaces (`pos = pos + 4`). R7. [gap-fill] 4-Camel stall penalty: If `outcome == (0, 4, 0, 0)` (4 Camels), the horse is "sitting down" and cannot advance on its next subsequent turn. R8. Win condition: The first horse whose position reaches or exceeds `TRACK_LENGTH` (`pos >= 30`) immediately wins first place (*Tümniy ekh*). R9. [gap-fill] Multi-place resolution: Play continues among the remaining players until 5 horses cross the finish line to establish the full traditional top-5 standings (*Airagdsan morid*). ## Edge cases - Tie at the end condition: Turns are sequential; the first agent to reach `pos >= 30` on their turn wins immediately (no simultaneous ties). - A player with no legal move: Not applicable — casting the 4 bones is always legal. - Repetition / cycles: Positions are non-decreasing monotonically; `P(n_horse > 0) > 0` per turn guarantees forward progression. - Simultaneous claims on the same resource: Multiple horses may occupy the exact same waypoint coordinate without collision or bumping penalties. - Player elimination mid-round: When an agent crosses the finish line, they are removed from future casting rotations; remaining agents continue racing. - Resource exhaustion: Not applicable — shared casting bones are reused indefinitely. - Termination guarantee: The Markov chain of horse positions reaches the absorbing state `>= 30` with probability 1 in finite expected turns (~30–45 turns per player). ## State representation - Persistent state: `horse_positions` (array of integers, 0..30 per player), `facing_forward` (array of booleans per player), `stall_penalty` (array of booleans), `active_player_index` (0..n-1), `placements` (ordered list of finished player IDs). - Per-turn ephemeral state: 4-astragalus sample `(n_horse, n_camel, n_sheep, n_goat)`, computed forward advance. - Observable information: Fully observable — all horse positions and cast outcomes are common knowledge. ## Action space - `cast_shagai()`: Trigger multinomial stochastic sample of 4 knucklebones. No parameter inputs required. ## Playability notes - Single-player-vs-AI: Natural — 1 human vs. 3 AI racehorses competing to the finish. - Group games (n>4): Fully scalable up to 8 racers without mechanical loss. - Physical-skill games: Stochastic race game formalizing natural knucklebone landing asymmetries. - What is lost in the adaptation: The physical sound of shaking bones in cupped hands and the tactile joy of moving carved wooden/bone horse figurines along the track. ## Implementation hints Lightweight 1D race engine. Milestone 1: implement 4-astragalus multinomial random generator with correct asymmetric weighting; Milestone 2: implement full race loop with 1st through 5th place leaderboard output.

Download as JSON

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

Download JSON
Cite this page

Knucklebone horse race (Mongolia). (n.d.). Games of Countries. https://gamesofcountries.com/games/mn-mongolia/shagai-mori-uralduulakh

@misc{gamesofcountries-mn-mongolia-shagai-mori-uralduulakh,
  title = {Knucklebone horse race (Mongolia)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/mn-mongolia/shagai-mori-uralduulakh}
}