Formal Specification
King and Vizier (Egyptian Role Parlour Game) — Formal Specification
Egypt · guessing-hidden · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 1
# El-Malik wel-Wazir — AI-optimized specification
## General idea
A four-agent social deduction and asymmetric role game. Secret role slips partition agents into King, Vizier, Executioner, and Thief. After King and Vizier reveal themselves, the Vizier must deduce which of the two remaining hidden agents is the Thief versus the Executioner based on verbal/bluffing signals.
## Formal model
- **Abstraction taken:** The 4 secret paper slips are represented as a uniform random permutation of the set of roles . Interrogation dialogues are modeled as noisy behavioral bluff vectors emitted by the two suspects.
- **Player/agent count:** 4 agents exactly (Agent 0, 1, 2, 3).
- **Turn model:** Discrete phase sequence per round.
## Formal rules
R1. Setup: Roles are dealt uniformly at random to the 4 agents.
R2. Phase 1 (King Declaration): Agent holding reveals their role publicly.
R3. Phase 2 (Vizier Declaration): Agent holding reveals their role publicly.
R4. Phase 3 (Interrogation & Bluffing):
- The two unrevealed agents each emit a 2D bluff signal modeling innocence projection and accusation deflection.
- True Thief emits ; true Executioner emits .
R5. Phase 4 (Vizier Accusation):
- Vizier selects one unrevealed agent as the accused Thief.
R6. Resolution:
- If role of is : Vizier succeeds (+10 points to Vizier, +5 points to King, -10 points to Thief).
- If role of is : Vizier blunders (+10 points to Thief, -10 points to Vizier).
R7. [gap-fill] Match Termination: Game consists of 8 dealing rounds. Highest cumulative score across all agents wins.
## Edge cases
- Tie at the end condition: If top scores are tied at round 8, an additional sudden-death round is dealt.
- A player with no legal move: In Phase 4, Vizier always has exactly 2 unrevealed candidates to choose from.
- Repetition / cycles: Strictly bounded by the 8-round match duration (R7).
- Simultaneous claims on the same resource or position: Role deal is a bijection from ; no two agents hold the same role.
- Player elimination mid-round; turn order repair: No mid-round elimination; 4 agents participate in every round.
- Resource exhaustion (pieces, tokens, space, time): Exactly 4 roles dealt per round; 8 rounds fixed.
- Termination guarantee: Guaranteed by the finite 8-round count.
## State representation
- Persistent state:
- `agent_scores`: map of `agent_id` to integer.
- `round_number`: integer in `1..8`.
- Per-round state:
- `role_assignment`: bijection (private).
- `public_reveals`: map of `agent_id` to revealed role.
- `suspect_signals`: map of `agent_id` to .
- Observable information: King and Vizier identities are public after Phase 1 & 2; remaining 2 roles are hidden until Phase 5.
## Action space
- King: `proclaim()` (automatic reveal).
- Vizier: `proclaim()`, `accuse(target_agent_id)`.
- Suspects: `emit_bluff(innocence_vector)`.
## Playability notes
- Single-player-vs-AI: Natural; human player can occupy any role (evaluating AI bluffing as Vizier, or bluffing against AI Vizier).
- Group games (n>4): For , additional roles (e.g., Guard, Citizen) can be introduced, but 4-player canonical form is standard.
- Physical-skill games: Direct translation; fully discrete logical game.
- What is lost in adaptation: The spontaneous comedic acting and theatrical delivery of mock sentences.
## Implementation hints
Bayesian classification and signal detection setup. Vizier agent computes posterior probability . First milestone: implement 4-card role deal, reveal order, and basic Bayesian scoring.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
King and Vizier (Egyptian Role Parlour Game) (Egypt). (n.d.). Games of Countries. https://gamesofcountries.com/games/eg-egypt/el-malik-wel-wazir
@misc{gamesofcountries-eg-egypt-el-malik-wel-wazir,
title = {King and Vizier (Egyptian Role Parlour Game) (Egypt)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/eg-egypt/el-malik-wel-wazir}
}