Formal Specification
Melodic finger guessing (Dembeedekh) — Formal Specification
Mongolia · guessing-hidden · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Dembee — AI-optimized specification
## General idea
A simultaneous-choice zero-sum finger guessing duel played over continuous discrete rhythmic ticks. On every tick, both agents simultaneously output a finger count (0 to 5) and a vocal sum guess (0 to 10). If exactly one agent correctly predicts the combined sum of both agents' fingers, that agent scores a point.
## Formal model
- **Abstraction taken:** The continuous musical rhythm and poetic verse chanting are formalized as discrete synchronized time ticks `t = 1, 2, ...`. On each tick, both agents simultaneously submit an action tuple `(fingers, call)`.
- **Player/agent count:** 2 agents: Player A and Player B.
- **Turn model:** Strictly simultaneous action selection per discrete round/tick.
## Formal rules
R1. Setup: Scores initialize to 0 (`score_A = 0`, `score_B = 0`). Target victory threshold is `TARGET_POINTS = 3` (or 5).
R2. Simultaneous submission: On each tick `t`, both agents independently and simultaneously choose an action tuple:
- `action_A = (f_A, c_A)` where `f_A in {0, 1, 2, 3, 4, 5}` and `c_A in {0, 1, ..., 10}`.
- `action_B = (f_B, c_B)` where `f_B in {0, 1, 2, 3, 4, 5}` and `c_B in {0, 1, ..., 10}`.
R3. Arithmetic validity constraint:
- An action is valid if and only if the called sum is physically possible given the agent's own displayed fingers:
`c_A >= f_A` and `c_A <= f_A + 5` (and likewise for Player B).
- [gap-fill] An invalid call (e.g. holding out 4 fingers while guessing "2") is an immediate foul (*aldaa*); the opponent receives +1 point.
R4. Resolution:
- Let true sum `S = f_A + f_B`.
- Case 1 (Single correct guess): If `c_A == S` and `c_B != S`, Player A scores +1 point.
- Case 2 (Single correct guess): If `c_B == S` and `c_A != S`, Player B scores +1 point.
- Case 3 (Simultaneous correct guess): If `c_A == S` and `c_B == S`, the tick is a wash (*tegsh*); neither player scores.
- Case 4 (Both incorrect): If `c_A != S` and `c_B != S`, neither player scores.
R5. Win condition: The first agent to accumulate `TARGET_POINTS` (3 points) wins the match immediately.
R6. [gap-fill] Max tick cap: If neither agent reaches 3 points after 50 ticks, the agent with the strictly higher score wins; if tied, the match extends until the next point scored (golden point).
## Edge cases
- Tie at the end condition: Golden point sudden death after R6 tick cap.
- A player with no legal move: Not applicable — a valid `(f, c)` tuple is always available.
- Repetition / cycles: While zero-point ticks can occur, non-zero probability of unique correct calls guarantees termination in expected finite ticks.
- Simultaneous claims on the same resource: Handled explicitly by R4 Case 3 (simultaneous correct guesses cancel out).
- Player elimination mid-round: Not applicable — 2-player duel.
- Resource exhaustion: Not applicable.
- Termination guarantee: Guaranteed by the finite score threshold and R6 maximum tick boundary.
## State representation
- Persistent state: `score_A` (integer, 0..3), `score_B` (integer, 0..3), `tick_index` (integer, 1..50), `history` (list of `(f_A, c_A, f_B, c_B, S)`).
- Per-tick ephemeral state: Private chosen tuples `action_A` and `action_B` (revealed simultaneously at resolution).
- Observable information: Previous tick histories, current scores, and action spaces are common knowledge; current-tick choices are private until simultaneous reveal.
## Action space
- `call_dembee(fingers, guess)`: Integer parameters where `0 <= fingers <= 5` and `fingers <= guess <= fingers + 5`.
## Playability notes
- Single-player-vs-AI: Natural — game-theoretic imperfect information matrix game (similar to Morra / Rock-Paper-Scissors with mixed-strategy Nash equilibria).
- Group games (n>4): Not applicable — 1v1 duel format; runs naturally as King-of-the-Hill where winners face new challengers.
- Physical-skill games: Deterministic simultaneous game-theoretic matrix.
- What is lost in the adaptation: The vocal acoustic beauty of the poetic singing, the rhythmic physical presence, and the festive airag drinking penalty.
## Implementation hints
Represent as a 2-player simultaneous matrix game. Action space size per player is `sum_{f=0}^5 6 = 36` valid `(f, c)` action pairs. Milestone 1: basic matrix solver and tick evaluator; Milestone 2: opponent pattern-predicting AI (Markov model on opponent's historical finger choices).
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Melodic finger guessing (Dembeedekh) (Mongolia). (n.d.). Games of Countries. https://gamesofcountries.com/games/mn-mongolia/dembee
@misc{gamesofcountries-mn-mongolia-dembee,
title = {Melodic finger guessing (Dembeedekh) (Mongolia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mn-mongolia/dembee}
}