Skip to main content
Formal Specification

Ronda — Formal Specification

Morocco · card · Confidence: low

← Back to game page

Implementation 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 R={1,2,3,4,5,6,7,10,11,12}. Imperfect information is modeled via private hand hands and hidden draw deck. - **Player/agent count:** 2 players (P0,P1) or 4 players in 2 fixed teams (T0={P0,P2},T1={P1,P3}). - **Turn model:** Sequential turns in clockwise rotation. ## Formal rules R1. **Deck & Ranks:** - Standard 40-card Spanish deck: 4 suits ×10 ranks (1,2,3,4,5,6,7,10,11,12). - Natural sequence order: 1→2→3→4→5→6→7→10→11→12. R2. **Deal Cycle:** - At start of hand, deck is shuffled. Dealer deals 4 cards face up to Table T. - 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: (40−4)/6=6 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 +1 pt. If two players declare, player with higher rank scores +1 pt. - If a player holds 3 cards of same rank: Player declares `tringo(rank)`. Scores +5 pts. R4. **Card Play & Captures:** - On active turn, player plays card C=(r,s) from hand to table. - **Matching Capture:** If r∈Ranks(T): - Player captures C and one card Cmatch=(r,s′) from T. - **Sequential Cascade:** For each next rank in sequence (r+1,r+2,…), if a card of that rank exists on T, player also captures that card. - All captured cards move to player's capture pile. - **Non-Matching Play:** If r∉Ranks(T), card C is added to T. R5. **Bonus Capture Scoring:** - **Mesa (Table Sweep):** If table T becomes ∅ immediately following a player's capture, player scores +1 pt. - **Darba (Immediate Counter):** If previous player played card of rank r without capturing, and active player plays rank r to capture it, active player scores +1 pt. - [gap-fill] If the next player immediately counters that with a third card of rank r, they score +5 pts (*Kharja*). R6. **Round Cleanup & Card Count:** - After the final card of the 6th deal is played, any remaining cards on table T are awarded to the player who made the last successful capture. - Total captured cards Ki: - If Ki>20, player i scores (Ki−20) additional points. R7. **Match Victory:** - Game continues across hands until a player/team reaches ≥21 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 ≥21 pts. ## State representation - **Persistent state:** Running match scores (S0,S1), target score ∈{21,41}, dealer index, deal index ∈[1,6]. - **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` ∈{ronda,tringo,none}. - `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 (N=4):** 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 (1,2,3,4,5,6,7,10,11,12). - 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 JSON
Cite 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}
}