Skip to main content
Formal Specification

The Broom — Formal Specification

Italy · card · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 1
# Scopa — AI-optimized specification ## General idea A discrete turn-based card capture game played with a 40-card deck where agents play one card per turn to capture single cards or additive subsets from the public table. Scoring rewards maximizing captured cards, coins, key point cards (Settebello, Primiera), and sweeping the table clear (*scopa*). ## Formal model - **Abstraction taken:** None required; the traditional game rules are fully discrete and complete. - **Player/agent count:** 2 agents (1v1) or 4 agents in 2 fixed pairs (2v2). - **Turn model:** Strictly sequential, counter-clockwise (or clockwise) rotation. ## Formal rules R1. Deck structure: 40 cards across 4 suits (Coins, Cups, Swords, Batons) with values V∈{1,2,3,4,5,6,7,8,9,10}. Target match score is T=11. R2. Deal: Dealer deals 3 private cards to each agent and places 4 cards face up on the table. (Redeal if ≥3 Kings on initial table). R3. Turn action: On turn, active agent plays one card c from hand to the table. - If ∃t∈Table such that val(t)=val(c), agent must capture t. (If multiple single cards match, agent chooses one). - Else if ∃S⊆Table such that ∑s∈Sval(s)=val(c), agent captures subset S. - Else, card c is added to the table. R4. Scopa evaluation: If a capture leaves the table completely empty (Table=∅) on any turn other than the final turn of the 40th card, the capturing agent immediately earns +1 *scopa* point. R5. Trick refills: When hands are empty, dealer deals 3 cards to each player from the stock without touching table cards. Repeats until stock is empty. R6. Deal conclusion: After the final card of the 40-card deck is played, any remaining cards on the table are added to the capture pile of the agent who made the last legal capture (no scopa point awarded). R7. Deal scoring: - Scope: +1 per recorded scopa. - Carte: +1 to agent with |Captures|≥21 (0 if 20-20). - Denari: +1 to agent with |Coins|≥6 (0 if 5-5). - Settebello: +1 to agent holding 7 of Coins. - Primiera: +1 to agent with highest sum of best-in-suit Primiera values (7→21,6→18,1→16,5→15,4→14,3→13,2→12,faces→10). R8. [gap-fill] Match win / tie-break: If both agents reach ≥11 points in the same deal, the agent with strictly more points wins. If tied at ≥11, additional full deals are played until one side leads at the end of a deal. ## Edge cases - Tie at the end condition: If scores are tied at ≥11 at deal conclusion, tie is broken by playing additional complete deals (R8). - A player with no legal move: Impossible; any card in hand is legally playable (either making a capture or dropping to the table). - Repetition / cycles: Impossible; deck size is strictly 40 cards, and each turn strictly decrements hand size by 1. - Simultaneous claims on the same resource or position: Not applicable; turns are strictly sequential. - Player elimination mid-round; turn order repair: Not applicable; 2-player or 4-player game with no eliminations. - Resource exhaustion (pieces, tokens, space, time): Deck exhausts after exactly 40/N turns; deal terminates deterministically. - Termination guarantee: Each deal yields non-negative points; guaranteed termination in a finite number of deals. ## State representation - Persistent state: - `score_a`, `score_b`: integers. - `target_score`: 11. - Per-deal state: - `deck_stock`: list of remaining cards in draw pile. - `table`: set of cards currently face up on table. - `hands`: array of private card lists per agent. - `capture_piles`: list of captured cards per agent/team. - `scopa_counts`: array of integers per agent/team. - `last_capture_agent`: agent ID. - Observable information: Table cards, discard plays, capture counts, and scopa announcements are public. Stock deck and opponent hands are private (imperfect information). ## Action space - `play_card(card_id: int, capture_target: Optional[List[int]])` ## Playability notes - Single-player-vs-AI: Engine-ready; standard benchmark for card counting, hidden information estimation, and minimax/MCTS game tree search. - Group games (n>4): Not applicable; standard format is 2 players or 4 players in 2 fixed pairs. - Physical-skill games: Direct discrete rules; no physical skill. - What is lost in the adaptation: Nothing of structural game logic. ## Implementation hints Extremely well-defined state space. Small branching factor (maximum 3 cards in hand, at most 2–4 capture subset choices per card). First milestone: Build the full 40-card deal, capture validation logic, primiera point calculator, and terminal scoring comparator.

Download as JSON

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

Download JSON
Cite this page

The Broom (Italy). (n.d.). Games of Countries. https://gamesofcountries.com/games/it-italy/scopa

@misc{gamesofcountries-it-italy-scopa,
  title = {The Broom (Italy)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/it-italy/scopa}
}