Formal Specification
Cap and Ring Guessing Game / Cup Hiding — Formal Specification
North Macedonia · guessing-hidden · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 4
# Lojë me kapuça (Филџанаш) — AI-optimized specification
## General idea
A two-team hidden-information deduction and bluffing game. The hiding team secretly deposits a token under one of ten cups/caps. The guessing team attempts either an all-or-nothing direct hit on guess 1 (awarding maximum points and swapping roles) or sequentially eliminates empty caps without accidentally finding the token prematurely.
## Formal model
- **Abstraction taken:** The physical arrangement of 10 caps is modeled as an array of 10 discrete slots indexed . The physical sleight-of-hand deposit is formalized as a uniform or biased secret integer choice . Micro-expression and behavioral tells can be modeled as noisy perceptual signals generated per cap.
- **Player/agent count:** 2 teams (Team Hiding and Team Guessing ), each represented by a decision-making agent.
- **Turn model:** Sequential rounds until target score () is reached.
## Formal rules
R1. **Round Initialization:** Array representing 10 active caps. Hider agent submits action `hide_token(slot)` with , setting secret state .
R2. **Guessing Phase:** submits action `guess_cap(slot, mode)` where and .
R3. **Direct Target Resolution (Mode 1):**
- If selects on guess 1:
- If : scores points, round ends, and roles swap ().
- If : , and must transition to SafeEliminate mode.
R4. **Safe Elimination Resolution (Mode 2):**
- If selects for cap :
- If : (successfully eliminated). continues to guess from remaining active caps.
- If : has failed the elimination sweep. Round ends immediately. scores points equal to remaining unlifted caps , and retains the hiding role for the next round.
R5. **Full Sweep Clearance:** If successfully eliminates all 9 empty caps leaving only with , scores points, round ends, and roles swap ().
R6. [gap-fill] Signal Noise Model:** Implementers modeling human tells may provide with an observation vector , where , .
R7. [gap-fill] Match Termination:** The first team to reach points wins the match.
R8. [gap-fill] Sleeve Hiding Ban:** must strictly be an integer in ; withholding the token from all caps is illegal and verified automatically by the game state engine.
## Edge cases
- Tie at the end condition: Not applicable; scores update sequentially per round, and the first team to cross 101 points wins immediately.
- A player with no legal move: In guessing phase, any active cap with is legal.
- Repetition / cycles: Bounded; every round guarantees non-negative integer point awards ( point per failed sweep, or 10 on success), ensuring monotonic score increase toward 101.
- Simultaneous claims on the same resource or position: Turns are strictly sequential between hider and guesser.
- Player elimination mid-round: Not applicable; team-level scoring persists across rounds.
- Resource exhaustion: Caps are reset to 10 at the start of every new round.
- Termination guarantee: [gap-fill] Every round awards at least 1 point to one of the teams; thus total score monotonically increases and must reach 101 in at most 101 rounds.
## State representation
- **Persistent state:** Team scores , active hider team , total rounds played.
- **Per-round ephemeral state:** Hidden token location , cap availability array , current guess count .
- **Observable information:** Cap availability and scores are public. Token location is strictly private to until round resolution.
## Action space
- `hide_token(slot)`: . Precondition: caller is at round start.
- `guess_cap(slot, mode)`: with , .
## Playability notes
- Single-player-vs-AI: Highly playable; human against an AI hider/guesser with Bayesian belief updating over cap locations.
- Group games (n>4): Reduces naturally to 1v1 agent decisions representing the team captains.
- Physical-skill games: None; pure game of probability, risk assessment, and bluffing.
- What is lost in the adaptation: The atmospheric winter evening banter, singing satirical folk verses, and face-to-face micro-expression reading.
## Implementation hints
Extremely low complexity. The entire engine is a 10-element binary array and a secret integer. First milestone: implement R1–R5 and verify that random guessing yields the theoretical expected point distribution.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Cap and Ring Guessing Game / Cup Hiding (North Macedonia). (n.d.). Games of Countries. https://gamesofcountries.com/games/mk-north-macedonia/loje-me-kapuca
@misc{gamesofcountries-mk-north-macedonia-loje-me-kapuca,
title = {Cap and Ring Guessing Game / Cup Hiding (North Macedonia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mk-north-macedonia/loje-me-kapuca}
}