Formal Specification
Ring in the Hand (Pass the Ring) — Formal Specification
Albania · guessing-hidden · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 3
# Loja e unazës në shami — AI-optimized specification
## General idea
A multi-agent hidden-information deduction game. A Dealer agent sequentially visits `N` seated Handholder agents and secretly drops a single ring into exactly one agent's private inventory. A Guesser agent observes a noisy behavioral signal vector emitted by all handholders and submits a single guess to identify the ring possessor.
## Formal model
- **Abstraction taken:** The physical hand-sliding motion is modeled as an integer drop selection `r ∈ {0..N-1}` by the Dealer. Deceptive poker faces and behavioral tells are modeled as a noisy observation vector `S = (s_0, s_1, ..., s_{N-1})` where the true recipient has an elevated tell parameter.
- **Player/agent count:** `N + 2` agents (1 Dealer, 1 Guesser, `N` Handholders, default `N = 5`).
- **Turn model:** Phased execution: Distribution Phase (Dealer), Signal Emission Phase (Handholders), Guessing Phase (Guesser).
## Formal rules
R1. Setup: Handholders are indexed `0..N-1`. All handholders start with `has_ring = false`.
R2. Distribution Phase: Dealer selects a recipient index `r ∈ {0..N-1}`. Handholder `r` receives the ring (`has_ring[r] = true`). This state is hidden from the Guesser.
R3. Signal Emission Phase: Each handholder `i ∈ {0..N-1}` emits an observable signal `s_i ~ Normal(mu_i, sigma^2)` [gap-fill: Bayesian tell model], where `mu_i = 1.0` if `has_ring[i] == true` and `mu_i = 0.0` otherwise (`sigma = 0.8`).
R4. Guessing Phase: Guesser observes the signal vector `S = (s_0, ..., s_{N-1})` and selects a guess `g ∈ {0..N-1}`.
R5. Resolution:
- If `g == r`: Guesser is `CORRECT` and scores `+10` points. Roles rotate: Guesser becomes Dealer, previous ring-holder `r` becomes Guesser for round `k+1`.
- If `g != r`: Guesser is `INCORRECT` and scores `0` points. Dealer scores `+5` points; previous Guesser remains Guesser for round `k+1` [gap-fill].
R6. Win condition: The first agent to accumulate 30 points across role rotations wins the game [gap-fill].
## Edge cases
- Tie at the end condition: Agent with highest total score wins; if tied, a 1v1 binary guess round breaks the tie.
- A player with no legal move: Not applicable; Dealer selects from `{0..N-1}`, Guesser selects from `{0..N-1}`.
- Repetition / cycles: Bounded because successful dealer deception or correct guesses both increment non-negative scores toward the 30-point ceiling.
- Simultaneous claims on the same resource or position: Not applicable; phase order is strictly sequential.
- Player elimination mid-round; turn order repair: Role rotation updates the pointer cleanly at round boundary.
- Resource exhaustion (pieces, tokens, space, time): Exactly one ring exists in the system.
- Termination guarantee: why the game provably ends: Guaranteed because each round awards either 10 points (to guesser) or 5 points (to dealer), ensuring termination in at most 12 rounds.
## State representation
- Persistent state: `scores: array[N+2] of int`, `current_dealer_id: int`, `current_guesser_id: int`, `round_num: int`.
- Per-turn ephemeral state: `ring_recipient: int (0..N-1, private to Dealer and Recipient)`, `signal_vector: array[N] of float`.
- Observable information: Dealer and recipient `r` know the true location. Guesser observes `signal_vector` and public scores.
## Action space
- `deposit_ring(target_id: int)`: Dealer action (`target_id ∈ {0..N-1}`).
- `submit_guess(target_id: int)`: Guesser action (`target_id ∈ {0..N-1}`).
## Playability notes
- Single-player-vs-AI: Natural; player acts as Guesser using statistical/heuristic deduction against AI Handholders.
- Group games (n>4): Natively scales to any `N` handholders.
- Physical-skill games: Physical deception is abstracted into the Gaussian tell model; inference strategy is fully preserved.
- What is lost in the adaptation: The live social nuances of eye contact, playful blushes, and physical giggles.
## Implementation hints
Clean Bayesian deduction model. Branching factor is `N` for dealer and `N` for guesser. First milestone: Implement Dealer deposit and Guesser max-likelihood decision rule for `N=5`.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Ring in the Hand (Pass the Ring) (Albania). (n.d.). Games of Countries. https://gamesofcountries.com/games/al-albania/loja-e-unazes
@misc{gamesofcountries-al-albania-loja-e-unazes,
title = {Ring in the Hand (Pass the Ring) (Albania)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/al-albania/loja-e-unazes}
}