Formal Specification
Ronda — Formal Specification
Morocco · card · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# Ronda — AI-optimized specification
## General idea
A Moroccan card-matching and fishing game for 2 or 4 players using a 40-card Spanish-suited deck. Players score points by calling initial hand combinations (*Ronda* for pairs, *Tringo* for triplets), capturing table cards via rank matching and ascending consecutive sequences, sweeping the table (*Mesa*), countering opponent plays (*Darba*), and accumulating a majority of captured cards.
## Formal model
- **Abstraction taken:** Direct representation of a standard 40-card deck with ranks . Imperfect information is modeled via private hand hands and hidden draw deck.
- **Player/agent count:** 2 players () or 4 players in 2 fixed teams ().
- **Turn model:** Sequential turns in clockwise rotation.
## Formal rules
R1. **Deck & Ranks:**
- Standard 40-card Spanish deck: 4 suits ranks ().
- Natural sequence order: .
R2. **Deal Cycle:**
- At start of hand, deck is shuffled. Dealer deals 4 cards face up to Table .
- Each player receives 3 private cards.
- When all players exhaust their 3 cards, dealer deals 3 more cards to each player from the remaining deck (no new cards dealt to table).
- Total deals in 2-player game: deals.
R3. **Initial Declarations:**
- Immediately following each 3-card deal:
- If a player holds a pair (2 cards of same rank): Player declares `ronda(rank)`. If uncountered, player scores pt. If two players declare, player with higher rank scores pt.
- If a player holds 3 cards of same rank: Player declares `tringo(rank)`. Scores pts.
R4. **Card Play & Captures:**
- On active turn, player plays card from hand to table.
- **Matching Capture:** If :
- Player captures and one card from .
- **Sequential Cascade:** For each next rank in sequence (), if a card of that rank exists on , player also captures that card.
- All captured cards move to player's capture pile.
- **Non-Matching Play:** If , card is added to .
R5. **Bonus Capture Scoring:**
- **Mesa (Table Sweep):** If table becomes immediately following a player's capture, player scores pt.
- **Darba (Immediate Counter):** If previous player played card of rank without capturing, and active player plays rank to capture it, active player scores pt.
- [gap-fill] If the next player immediately counters that with a third card of rank , they score pts (*Kharja*).
R6. **Round Cleanup & Card Count:**
- After the final card of the 6th deal is played, any remaining cards on table are awarded to the player who made the last successful capture.
- Total captured cards :
- If , player scores additional points.
R7. **Match Victory:**
- Game continues across hands until a player/team reaches points (or 41 points in long format) at the end of a round or immediately upon milestone.
## Edge cases
- **Tie at the end condition:** If both players exceed 21 points on the same hand, the player with the higher total score wins; [gap-fill] if identical, play another 1-hand tie-breaker.
- **A player with no legal move:** Not applicable — playing any card from the 3-card hand is always legal.
- **Repetition / cycles:** Impossible — each deal strictly consumes cards from a finite 40-card deck; each hand has exactly 36 card plays.
- **Simultaneous claims on the same resource or position:** Turns are strictly sequential; matching and sweeping operate on the instantaneous table state.
- **Player elimination mid-round; turn order repair:** Not applicable in 2-player or 4-player fixed team play.
- **Resource exhaustion:** Deck is strictly partitioned and consumed completely by the 6th deal.
- **Termination guarantee:** Each hand consumes 40 cards, awarding positive score delta; total points strictly increase monotonically, guaranteeing termination pts.
## State representation
- **Persistent state:** Running match scores , target score , dealer index, deal index .
- **Per-hand state:** Remaining deck (list of cards), table cards (set of face-up cards), capture piles per player, last-capture player ID, last-played-card record.
- **Private player state:** 3-card hand per player.
- **Observable information:** Imperfect information: played table cards, discarded/captured counts, declared combinations, and running scores are public; opponent hand and draw deck are hidden.
## Action space
- `declare_combination(type, rank)`: `type` .
- `play_card(card_id)`: Select one card from current hand to play.
## Playability notes
- **Single-player-vs-AI:** Excellent suitability: standard Information-Set MCTS (IS-MCTS) or Minimax with imperfect information card tracking provides human-level competitive play.
- **Group games ():** 2v2 partnership format shares capture piles and scores; communication between partners is strictly forbidden.
- **Physical-skill games:** Not applicable (pure card game).
- **What is lost in the adaptation:** The physical tactile slam of cards on café tables and traditional verbal psych-outs.
## Implementation hints
- Implement the sequential rank lookup using an array of ranks to handle the jump from 7 to 10 ().
- First milestone: Implement 2-player deal, matching capture, and sequential sweep logic with automatic card scoring.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Ronda (Morocco). (n.d.). Games of Countries. https://gamesofcountries.com/games/ma-morocco/ronda
@misc{gamesofcountries-ma-morocco-ronda,
title = {Ronda (Morocco)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ma-morocco/ronda}
}