Formal Specification
Knucklebone four-role lot game — Formal Specification
Azerbaijan · dice-lots · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 4
# Xan-vəzir — AI-optimized specification
## General idea
A four-role social lot game whose distinctive mechanic is a forced-unique simultaneous roll: all four players cast one knucklebone each, and only a fully distinct 4-way facet outcome resolves a trial — any duplicate forces a full re-roll of all four bones until every role is uniquely assigned. The named court-drama roleplay (accusation, plea, sentencing) is dramatic framing layered on top of this lot-assignment mechanic and carries no separate scoring of its own beyond the fixed Khan-role point award.
## Formal model
- **Abstraction taken:** The theatrical court trial (accusation, witty plea, sentence choice) is treated as flavor with one state-relevant decision point — the Khan's sentence-type choice — since the entry gives no mechanical effect for the trial's content beyond determining which of three named punishments is narrated.
- **Player/agent count:** exactly 4 agents (the entry's "4 to 8 players sharing roles" extension is not mechanically specified) [gap-fill: the standard 4-player format is used as the formal baseline, since the entry gives no rule for how roles are shared or rotated among more than 4 players].
- **Turn model:** Sequential trials; within each trial, all 4 players' rolls are simultaneous, followed by a sequential roleplay/sentencing step.
## Formal rules
R1. Facet-to-role mapping (entry §1, fixed): `Alçı` → Khan, `Tava/Vəzir` → Vizier, `Oğru/Çıx` → Thief, `Qul/Cik` → Enforcer.
R2. Casting: all 4 players simultaneously submit `roll_bone()` (entry §2.1); each resolves an independent stochastic facet outcome from the four possible facets.
R3. Unique assignment (entry §2.2): if the 4 rolled facets are all distinct, each player is assigned the role mapped (R1) from their own roll; the trial proceeds to R5.
R4. Re-roll on collision (entry §2.3): if any two or more players roll the same facet, all 4 players re-submit `roll_bone()` together (a full simultaneous re-roll of all four bones, not just the tied ones) [gap-fill: the entry states "re-rolls occur until... uniquely established" without specifying whether only the colliding players re-roll or the whole group does; a full group re-roll is the minimal reading consistent with "the 4 knucklebones are rolled together" as the base casting action, entry §2.1]. This repeats until R3's uniqueness condition holds.
R5. Court trial (entry §3): the Khan opens court, the Vizier accuses the Thief with a satirical charge, and the Thief may plead (all flavor, no state effect beyond narrative framing).
R6. Sentencing (entry §4.1): the Khan freely chooses one sentence type — `ear_twist` (Enforcer performs), `palm_taps` (Enforcer performs, 3 taps), or `song_poem` (the Thief performs) [gap-fill: the entry says the Khan sentences "based on the severity of the offense," but the offense itself is improvised satire with no formal severity metric, so the Khan's choice is modeled as a free, unconstrained decision among the three named options].
R7. Scoring (entry §5): whichever player holds the Khan role in a given trial earns +1 Honor Point for that trial [gap-fill: the entry states points accumulate "for terms served as Khan" without specifying the per-trial value; +1 per trial is the minimal reading consistent with a simple cumulative tally over a fixed 10 trials].
R8. Match structure (entry §5, explicit): the game consists of exactly 10 trials (R2-R7 repeated). After the 10th trial resolves, the player with the highest cumulative Honor Point total wins. The entry gives no tiebreak for equal totals.
## Edge cases
- Tie at the end: not addressed by the entry for equal Honor Point totals after 10 trials — a genuine silence.
- A player with no legal move: not applicable — every player always has `roll_bone()` available each trial/re-roll; the Khan always has R6's sentencing choice available once assigned.
- Repetition / cycles: the re-roll loop (R4) can in principle repeat many times before achieving a unique 4-way outcome, but this is bounded — each re-roll attempt has a fixed positive probability of success (all 4 facets distinct), so the loop terminates with probability 1 and does not threaten the 10-trial match structure's boundedness.
- Simultaneous claims on one position: not applicable in the usual multi-agent-position sense — R2's simultaneous roll is exactly the mechanic the game is built around, and R3-R4 fully resolve any collision.
- Elimination mid-round and turn-order repair: not applicable — no player is ever removed from the game; roles are reassigned fresh every trial (R2-R4).
- Resource exhaustion: not applicable — no consumable resource; the 4 knucklebones are reused every trial.
- Termination guarantee: each trial's re-roll sub-loop (R4) terminates with probability 1 (bounded re-roll argument above), and the match itself is capped at exactly 10 trials (R8, an explicit fixed number from the source, not an invented one). The match therefore terminates in a finite, bounded number of trials, each of which itself resolves in finite expected re-rolls.
## State representation
- Persistent (match) state: `honor_points[player]` (4 counters), `trial_number` (1-10).
- Per-trial ephemeral state: `facet_rolled[player]`, `role_assignment[player]` (once unique), `sentence_chosen`.
- Observable information: fully observable — all rolls, role assignments, and running Honor Point totals are public; no hidden information.
## Action space
- `roll_bone()`: any player, casting/re-casting phase (R2, R4); precondition: trial not yet uniquely resolved.
- `choose_sentence(sentence_type)`: the current Khan only; precondition: roles uniquely assigned (R3), trial phase reached R6; `sentence_type` ∈ {ear_twist, palm_taps, song_poem}.
## Playability notes
- Single-player-vs-AI: natural — a human competes against 3 AI players across 10 trials, with the Khan's sentencing choice (R6) as the only meaningful per-trial decision beyond the random roll.
- Reducing player count: the entry's own 4-8 "sharing roles" extension is not mechanically specified; a formal implementation below or above exactly 4 would need an invented rule the source does not supply, so 4 is the recommended baseline.
- Physical-skill games: none — knucklebone-rolling outcome is collapsed into a stochastic facet check (R2); no genuine throwing/rolling skill is modeled, consistent with the game's lot-casting nature.
- What is lost: the actual physical weight and feel of rolling real knucklebones, the improvised satirical wit of the Vizier's accusations and the Thief's plea, and the comic physical performance of the sentences (ear twists, palm taps, sung verses).
## Implementation hints
State is minimal (a facet roll and role per player per trial, plus a running point tally); the only real design question is how to represent the flavor court-drama step, which carries no mechanical weight beyond the Khan's free sentence choice (R6). First milestone: implement the roll/re-roll/assign loop (R2-R4) and the 10-trial Honor Point tally (R7-R8) to validate the win condition, then layer in the roleplay text generation as pure presentation.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Knucklebone four-role lot game (Azerbaijan). (n.d.). Games of Countries. https://gamesofcountries.com/games/az-azerbaijan/khan-vezir
@misc{gamesofcountries-az-azerbaijan-khan-vezir,
title = {Knucklebone four-role lot game (Azerbaijan)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/az-azerbaijan/khan-vezir}
}