Skip to main content
Formal Specification

Morra (Finger-Sum Guessing) — Formal Specification

Spain · guessing-hidden · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 1
# La morra — AI-optimized specification ## General idea A simultaneous two-agent imperfect-information game where each agent simultaneously presents an integer of fingers f∈{1,2,3,4,5} and shouts a predicted total sum s∈{2,…,10}. The agent whose guess matches the true sum fA+fB scores 1 point (provided the opponent missed). First to reach 21 points wins. ## Formal model - **Abstraction taken:** None required; the game is a clean discrete matrix game executed in simultaneous ticks. - **Player/agent count:** 2 agents (A and B). - **Turn model:** Strictly simultaneous action selection per round. ## Formal rules R1. Setup: Scores initialized to SA=0,SB=0. Target score T=21. R2. Legal action definition: An action is a tuple (f,s) where: - Fingers shown: f∈{1,2,3,4,5}. - Sum shouted: s∈[f+1,f+5] (a player's shout must be mathematically reachable given their own finger choice). R3. Simultaneous selection: Both agents simultaneously submit their private choice (fA,sA) and (fB,sB). R4. Round resolution: Let the true sum be S∗=fA+fB. - If sA=S∗ and sB≠S∗: Agent A scores +1 point (SA←SA+1). - If sB=S∗ and sA≠S∗: Agent B scores +1 point (SB←SB+1). - If sA=S∗ and sB=S∗: Draw (no points awarded). - If sA≠S∗ and sB≠S∗: Miss (no points awarded). R5. Win condition: The first agent to achieve S≥21 wins the game immediately. R6. [gap-fill] Round cap safeguard: If 200 consecutive rounds yield no winner, the game terminates with a point awarded to the agent with the higher running total (or sudden death). ## Edge cases - **Tie at the end condition:** Not applicable; points are awarded sequentially per round. Double-hits in a round score 0–0, so both agents can never cross 21 simultaneously. - **A player with no legal move:** Not applicable; legal action set size |𝒜|=25 choices is always valid. - **Repetition / cycles:** Bounded by stochastic transition probability P(score)≥225>0 under any mixed strategy, ensuring termination in finite rounds almost surely. - **Simultaneous claims on the same resource or position:** Handled natively by R4 simultaneous resolution rules. - **Player elimination mid-round:** Not applicable; 1v1 duel format. - **Resource exhaustion:** Not applicable; non-depleting game tokens. - **Termination guarantee:** Guaranteed by non-zero point scoring probability per round and target score 21. ## State representation - **Persistent state:** `score_A` (0..21), `score_B` (0..21), `round_count` (∈ℕ). - **Per-round ephemeral state:** `action_A` (fA,sA), `action_B` (fB,sB) (hidden until simultaneous reveal). - **Observable information:** Scores and past history of revealed plays are public; current-round choices are strictly private until simultaneous reveal. ## Action space - `play(fingers, shout)`: Integer pair f∈[1,5] and s∈[f+1,f+5]. Total discrete action space cardinality =25. ## Playability notes - **Single-player-vs-AI:** Natural; human selects (f,s) against an AI opponent utilizing Markov transition models or fictitious play algorithms to exploit human pattern bias. - **Group games (n>4):** Contested as team relays (pairs taking alternate 5-point legs). - **Physical-skill games:** Pure discrete matrix game; zero physical noise. - **What is lost in the adaptation:** Vocal shouting volume, rapid hand gesture rhythm, and visceral psychological intimidation across a tavern counter. ## Implementation hints Very low complexity. Exact 25×25 payoff matrix game. First milestone: Implement 1v1 matrix evaluator with uniform random choices, then layer in frequency-tracking counter strategies.

Download as JSON

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

Download JSON
Cite this page

Morra (Finger-Sum Guessing) (Spain). (n.d.). Games of Countries. https://gamesofcountries.com/games/es-spain/la-morra

@misc{gamesofcountries-es-spain-la-morra,
  title = {Morra (Finger-Sum Guessing) (Spain)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/es-spain/la-morra}
}