Formal Specification
Morra (Finger-Sum Guessing) — Formal Specification
Spain · guessing-hidden · Confidence: low
← Back to game pageImplementation 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 and shouts a predicted total sum . The agent whose guess matches the true sum 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 ( and ).
- **Turn model:** Strictly simultaneous action selection per round.
## Formal rules
R1. Setup: Scores initialized to . Target score .
R2. Legal action definition: An action is a tuple where:
- Fingers shown: .
- Sum shouted: (a player's shout must be mathematically reachable given their own finger choice).
R3. Simultaneous selection: Both agents simultaneously submit their private choice and .
R4. Round resolution: Let the true sum be .
- If and : Agent A scores point ().
- If and : Agent B scores point ().
- If and : Draw (no points awarded).
- If and : Miss (no points awarded).
R5. Win condition: The first agent to achieve 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 choices is always valid.
- **Repetition / cycles:** Bounded by stochastic transition probability 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` (), `score_B` (), `round_count` ().
- **Per-round ephemeral state:** `action_A` , `action_B` (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 and . Total discrete action space cardinality .
## Playability notes
- **Single-player-vs-AI:** Natural; human selects 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 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 JSONCite 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}
}