Skip to main content
Formal Specification

King and Vizier — Formal Specification

Afghanistan · guessing-hidden · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 3
# Pādshāh wa Wazīr — AI-optimized specification ## General idea A four-agent social deduction, role-reveal, and bluffing game. Four secret roles—King (*Pādshāh*), Vizier (*Wazīr*), Thief (*Dozd*), and Executioner (*Jallād*)—are randomly distributed. The King and Vizier reveal their identities, leaving two suspects holding the hidden Thief and Executioner roles. The Vizier must interrogate both suspects and deduce which one is the Thief; a correct accusation punishes the Thief, while an incorrect accusation boomerangs the penalty onto the Vizier. ## Formal model - **Abstraction taken:** Social facial tells, verbal interrogation banter, and theatrical physical punishments are formalized as a discrete Bayesian hidden-information game with a communicative interrogation phase and explicit point/penalty payoff matrices. - **Player/agent count:** Exactly 4 agents (A1,A2,A3,A4). - **Turn model:** Sequential phase-based protocol per round. ## Formal rules R1. **Setup & Role Dealing:** At round start, the role set ℛ={King,Vizier,Thief,Executioner} is uniformly shuffled and dealt one per agent. Each agent privately observes their own assigned role. R2. **Royal Proclamation Phase:** - The agent holding the King role executes `REVEAL_KING()`. - The agent holding the Vizier role executes `REVEAL_VIZIER()`. - The King issues the royal command designating the remaining two agents (S1,S2) as the suspect pool. R3. **Interrogation & Bluffing Phase:** - The Vizier may submit a query action `INTERROGATE(suspect_id, query_type)`. - Both suspects submit a public statement action `TESTIFY(statement_claim)`. The Thief seeks to mimic the Executioner's persona, while the Executioner seeks to establish genuine credibility. [gap-fill: formalized dialogue query-response protocol]. R4. **The Royal Accusation:** - The Vizier selects exactly one suspect: `ACCUSE_THIEF(suspect_id)`. R5. **Resolution & Payoffs:** - Both suspects reveal their true roles. - **Case 1 (Correct Accusation):** If the accused suspect is indeed the Thief: - Vizier scores +100 points. - King scores +50 points. - Executioner scores +25 points. - Thief scores −100 points (penalized). - **Case 2 (False Accusation):** If the accused suspect is the Executioner: - Thief scores +100 points (successful bluff). - Executioner scores +50 points. - King scores 0 points. - Vizier scores −100 points (penalized for incompetence). - [gap-fill: standard point payoff matrix for competitive AI tracking]. R6. **Match Structure & Termination:** A complete match consists of 4×K rounds (default: K=3, total 12 rounds) so each agent has equal expected probability of drawing all 4 roles. The agent with the highest cumulative point total wins. ## Edge cases - Tie at the end condition: If two agents have equal point totals after 12 rounds, tied agents play a 1v1 coin-guess sudden-death round. [gap-fill: sudden death tiebreaker]. - A player with no legal move: Not applicable; every phase defines mandatory deterministic responses (e.g., King/Vizier must reveal; Vizier must accuse one of the two suspects). - Repetition / cycles: Bounded strictly by the 12-round match schedule. - Simultaneous claims on the same resource or position: The role distribution is a strict bijection from 4 unique roles to 4 unique agents; no duplicate roles can exist. - Player elimination mid-round; turn order repair: Not applicable; all 4 agents participate in every phase of all 12 rounds. - Resource exhaustion (pieces, tokens, space, time): The 12-round schedule strictly exhausts. - Termination guarantee: Provably terminates because the round counter increments monotonically from 1 to 12. ## State representation - **Persistent state:** - `round_number`: integer (1..12) - `cumulative_scores`: map of `agent_id -> integer` - **Per-round ephemeral state:** - `role_assignments`: map of `agent_id -> Role` - `revealed_roles`: map of `agent_id -> Role | None` - `suspect_ids`: tuple `(agent_id, agent_id)` - `interrogation_log`: list of dialogue exchange records - `vizier_accusation`: `agent_id | None` - **Observable information:** - Private: Each agent observes only their own dealt role. - Public: King and Vizier identities after reveal; dialogue statements during interrogation; all roles after accusation resolution. ## Action space - `reveal_role()`: Precondition: Role is King or Vizier during Proclamation Phase. - `testify(claim)`: Precondition: Agent is one of the two unrevealed suspects during Interrogation Phase. - `accuse_thief(target_id)`: Precondition: Agent is Vizier, `target_id in suspect_ids`. ## Playability notes - Single-player-vs-AI: Fully engine-ready. The human player can assume any of the 4 roles against 3 AI agents utilizing natural language or Bayesian feature deduction (analyzing bluff probabilities, historical tell patterns, and prior frequencies). - Group games (n>4): The traditional core is strictly 4 players; expandable to N>4 by adding secondary roles (e.g., Judge, Spy, Guard) with dedicated sub-investigations without altering the core Vizier deduction loop. - Physical-skill games: Not applicable; purely a cognitive deduction, bluffing, and communication game. - What is lost in the adaptation: The micro-facial expressions, nervous laughter around the *sandali*, playful rolled-newspaper slaps, and comedic impersonation punishments. ## Implementation hints Low complexity. The state machine has clean, unambiguous phase boundaries (`DEAL` → `PROCLAIM` → `INTERROGATE` → `ACCUSE` → `RESOLVE`). Suggested first milestone: implement the 4-player dealing and payoff resolution matrix with random suspect choice, then integrate LLM-driven or probabilistic bluffing/interrogation dialogue.

Download as JSON

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

Download JSON
Cite this page

King and Vizier (Afghanistan). (n.d.). Games of Countries. https://gamesofcountries.com/games/af-afghanistan/padshah-wa-wazir

@misc{gamesofcountries-af-afghanistan-padshah-wa-wazir,
  title = {King and Vizier (Afghanistan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/af-afghanistan/padshah-wa-wazir}
}