Skip to main content
Formal Specification

Al-Funayjilah (The Little Cup) — Formal Specification

Jordan · guessing-hidden · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 4
# Al-Funayjilah — AI-optimized specification ## General idea A two-team asymmetric deduction game where the hiding team secretly places a ring beneath one of 9 numbered coffee cups while observing the sacred inviolability of a 10th "Sheikh's Cup". The guessing team iteratively eliminates empty cups to maximize point yields while avoiding declaring the ring's location prematurely or disturbing the forbidden Sheikh's Cup. ## Formal model - **Abstraction taken:** Psychological micro-expressions are abstracted into probabilistic deduction or pure information-set reduction. - **Player/agent count:** 2 teams (Thide,Tguess). - **Turn model:** Alternating phases: 1 Hiding Phase, followed by a sequential Guessing/Elimination Phase. ## Formal rules R1. **Board setup:** 9 play cups C={c1,…,c9} arranged in a grid, and 1 non-playable cup csheikh. R2. **Hiding action:** Thide selects secret target h∗∈C. csheikh is an illegal selection; selecting it forfeits the round immediately. R3. **Guessing actions:** Tguess executes a sequence of declarations ak: - `eliminate_empty(c_i)`: Asserts ci≠h∗. If correct, ci is revealed empty and removed from C. - `declare_target(c_i)`: Asserts ci=h∗. Resolves the round immediately. - If Tguess targets csheikh with any action, Tguess forfeits the round. R4. **Scoring:** - If `declare_target(c_i)` is correct (ci=h∗): Tguess scores |Cremaining|×10 points [gap-fill]. - If `eliminate_empty(c_i)` hits h∗ (accidental reveal while declaring empty): Round ends; Tguess scores 0; Thide scores 50 points [gap-fill]. - If `declare_target(c_i)` is incorrect (ci≠h∗): Round ends; Tguess scores 0; Thide scores 50 points [gap-fill]. R5. **Match victory:** Roles swap each round. First team to reach 100 points wins the match. ## Edge cases - **Tie at the end condition:** If both reach 100 in the same round pair, tiebreaker round is played [gap-fill]. - **A player with no legal move:** Not applicable — at least one cup is always available in C. - **Repetition / cycles:** Impossible since |C| strictly decrements on each elimination. - **Simultaneous claims:** Not applicable — strictly phased turn order. - **Player elimination mid-round:** Not applicable — team-level decision. - **Resource exhaustion:** Cup set is finite (|C|=9). - **Termination guarantee:** Each round terminates in at most 9 steps; match terminates when score threshold is reached. ## State representation - **Persistent state:** `scores: Dict[Team, int]`, `active_hider: Team`, `active_guesser: Team`. - **Ephemeral state:** `hidden_cup: Optional[int]`, `revealed_empty: Set[int]`, `round_over: bool`. - **Observable information:** `hidden_cup` is private to Thide until revealed; `revealed_empty` is common knowledge. ## Action space - `hide(cup_id)`: Selects h∗∈{1…9}. - `eliminate(cup_id)`: Removes empty candidate. - `guess(cup_id)`: Final point attempt. ## Playability notes - **Single-player-vs-AI:** Direct implementation as a Bayesian deduction game with bluffing probabilities. - **Group games (n>4):** Naturally modeled as a single agent per team representing the team leader. - **Physical-skill games:** Not applicable (pure information/logic game). - **What is lost:** In-person facial reading, body language cues, and coffee ceremony ambiance. ## Implementation hints Ideal for direct game engine conversion. Board state is an array of 9 booleans plus score counters.

Download as JSON

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

Download JSON
Cite this page

Al-Funayjilah (The Little Cup) (Jordan). (n.d.). Games of Countries. https://gamesofcountries.com/games/jo-jordan/al-funayjilah

@misc{gamesofcountries-jo-jordan-al-funayjilah,
  title = {Al-Funayjilah (The Little Cup) (Jordan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/jo-jordan/al-funayjilah}
}