Skip to main content
Formal Specification

Knucklebones (Civël / Astragalus Game) — Formal Specification

Albania · dice-lots · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Loja me ashikë — AI-optimized specification ## General idea A turn-based stochastic casting and wagering game utilizing the asymmetric 4-state resting probabilities of sheep astragalus knucklebones. Agents roll sets of 4 knucklebones to score defined point combinations, managing risk and turn-passing decisions to reach a target point total. ## Formal model - **Abstraction taken:** The 3D asymmetric tumble of a real knucklebone is formalized as a discrete random variable `X ∈ {BEJ, VEZIR, HAJDUT, GOMAR}` with non-uniform empirical landing probabilities. - **Player/agent count:** `N` agents (`N = 2..6`, default `N = 2`). - **Turn model:** Sequential turns with push-your-luck re-roll mechanics. ## Formal rules R1. Knucklebone Randomizer Distribution [gap-fill: empirical astragalus landing probabilities]: - `P(BEJ) = 0.10` (Narrow convex side — highest value) - `P(VEZIR) = 0.15` (Narrow concave side — second value) - `P(HAJDUT) = 0.35` (Broad flat side) - `P(GOMAR) = 0.40` (Broad indented side) R2. On an agent's turn, they roll a set of 4 independent knucklebones `(X_1, X_2, X_3, X_4)`. R3. Scoring Evaluation per Roll: - All 4 `BEJ`: Grand Jackpot — scores `+50` points immediately. - All 4 distinct faces `{BEJ, VEZIR, HAJDUT, GOMAR}` (Complete Hand): scores `+20` points. - 3 of a kind `BEJ`: scores `+15` points. - 2 `BEJ`: scores `+10` points. - 2 `VEZIR`: scores `+5` points. - All 4 `GOMAR`: BUST (`0` points for the entire turn; turn ends immediately). - Any other combination: scores `+2` points. R4. Push-Your-Luck Decision: - After a non-bust roll, the active agent chooses between `BANK` and `RE_ROLL`. - If `BANK`: The accumulated turn score is added to the agent's permanent score; turn ends; turn passes to next agent. - If `RE_ROLL`: Agent rolls all 4 bones again. If they roll a BUST, all points accumulated during this active turn are lost. R5. Win condition: The first agent to accumulate `50` permanent points wins the game immediately. R6. [gap-fill] Max turns: If 30 round rotations elapse without reaching 50 points, the agent with the highest permanent score wins. ## Edge cases - Tie at the end condition: Agent with strictly higher score at turn boundary wins; if identical, a sudden-death single roll with highest single-roll score decides the winner. - A player with no legal move: Not applicable; `BANK` and `RE_ROLL` are always valid after a non-bust roll. - Repetition / cycles: Bounded because permanent scores increase monotonically via banked turns, and R6 caps turns at 30. - Simultaneous claims on the same resource or position: Not applicable; turns are strictly sequential. - Player elimination mid-round; turn order repair: If an agent busts, turn simply advances to `(active_player + 1) % N`. - Resource exhaustion (pieces, tokens, space, time): Knucklebones are rolled and reset every throw. - Termination guarantee: why the game provably ends: Guaranteed because non-bust rolls accumulate positive points with high probability, and R6 strictly truncates maximum turns. ## State representation - Persistent state: `permanent_scores: array[N] of int`, `active_player_idx: int`, `round_count: int`. - Per-turn ephemeral state: `turn_accumulated_score: int`, `current_roll: array[4] of FaceEnum`, `is_bust: bool`. - Observable information: Fully observable by all agents at all times. ## Action space - `roll_initial()`: Automated roll at turn start. - `choose_decision(action: {BANK, RE_ROLL})`: Agent choice following each successful roll. ## Playability notes - Single-player-vs-AI: Natural and direct; AI uses expected-value thresholding to decide whether to bank or re-roll. - Group games (n>4): Natively supported across any number of agents. - Physical-skill games: Purely chance-driven and risk-management game; fully captured by the discrete probability model. - What is lost in the adaptation: The tactile resonance of bones clicking together on a wooden floor and the craft of weighting bones with lead. ## Implementation hints Extremely simple and clean probabilistic state machine. Branching factor is 2 (`BANK` vs. `RE_ROLL`). First milestone: Implement bone casting sampler, combination scoring table, and turn bank/bust logic.

Download as JSON

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

Download JSON
Cite this page

Knucklebones (Civël / Astragalus Game) (Albania). (n.d.). Games of Countries. https://gamesofcountries.com/games/al-albania/loja-me-ashike

@misc{gamesofcountries-al-albania-loja-me-ashike,
  title = {Knucklebones (Civël / Astragalus Game) (Albania)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/al-albania/loja-me-ashike}
}