Formal Specification
Brisca — Formal Specification
Spain · card · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 2
# La brisca — AI-optimized specification
## General idea
A turn-based imperfect-information trick-and-draw card game using a 40-card Spanish deck. Players hold 3 cards and may legally play any card from hand on their turn without suit or rank restrictions. After each trick, players draw a replacement card from the stock. High points are concentrated in Aces (11) and Threes (10), while card counting and timing the capture of the visible bottom trump card govern endgame strategy.
## Formal model
- **Abstraction taken:** None required; complete discrete system.
- **Player/agent count:** 2 agents in 1v1 (or 4 agents in 2v2 fixed partnership).
- **Turn model:** Sequential turns; alternating trick lead and follow.
## Formal rules
R1. Deck configuration: 40 cards across 4 suits. Point values: As , , Rey , Caballo , Sota , remaining . Trick-taking rank hierarchy (within suit): As > > Rey > Caballo > Sota > > > > > .
R2. Deal: Each agent receives 3 cards. The next card is placed face up on the table to define the trump suit ; remaining cards form the draw stock placed over the trump card.
R3. Card play: On an agent's turn, the agent may play ANY card currently held in hand. There are no mandatory follow-suit (*asistir*) or beating (*montar*) rules.
R4. Trick resolution:
- If card of trump suit is played: The highest-ranking trump card wins.
- If 0 cards of trump suit are played: The highest-ranking card matching the suit of the FIRST card played in the trick wins.
- Any non-trump card of a different suit cannot win the trick.
R5. Trick collection & draw: The trick winner collects all played cards into their score pile, draws the top card of stock , and the other agent(s) draw in turn order.
R6. Trump card exchange: An agent holding the of trump suit may execute an `exchange_trump()` action before playing a card to swap the for the face-up bottom trump card (if the bottom trump is ). If the bottom trump is , holding the of trumps permits the swap.
R7. Endgame: When stock is empty (including the bottom trump card), the final tricks are played from remaining hand cards.
R8. Win condition: After all 40 cards are played, card point totals are summed. The agent/team with points wins the game.
R9. [gap-fill] Draw condition: If points end exactly 60–60, the game is declared a draw (*tablas*) and replayed.
## Edge cases
- **Tie at the end condition:** Handled by R9 ( [gap-fill]); 60–60 is a draw.
- **A player with no legal move:** Not applicable; any card in hand is legal while hand size .
- **Repetition / cycles:** Non-cyclical; stock depletes by cards per trick, and hand sizes deplete to 0 after stock exhaustion.
- **Simultaneous claims on the same resource or position:** Not applicable; strictly sequential turns.
- **Player elimination mid-round:** Not applicable; all agents play until all 40 cards are exhausted.
- **Resource exhaustion:** Stock depletes monotonically from down to 0.
- **Termination guarantee:** Guaranteed because each trick consumes 1 card per agent from hand/stock, terminating in exactly tricks.
## State representation
- **Persistent state:** `scores` , `trump_suit` (), `stock_cards` (list of cards), `bottom_trump_card` (visible card object).
- **Per-trick ephemeral state:** `current_trick` (list of played cards with player IDs), `lead_suit`, `trick_winner_id`.
- **Observable information:** Agent holds private 3-card hand; bottom trump card, captured trick piles (face down, but point counts can be tracked), and public plays are observable.
## Action space
- `play_card(hand_index)`: Integer index .
- `exchange_trump()`: Valid only if holding 7 (for high trump) or 2 (for low trump) prior to playing a card.
## Playability notes
- **Single-player-vs-AI:** Natural; 1 human vs. 1 AI (or 2v2 with AI bots).
- **Group games (n>4):** Reduces cleanly to 2v2 or 1v1.
- **Physical-skill games:** Pure discrete card game; zero execution noise.
- **What is lost in the adaptation:** Physical card shuffling feel, visual bluffing tells, and table banter.
## Implementation hints
Very low complexity. Simple trick comparison logic and stock draw queue. First milestone: Implement 1v1 3-card hand loop with stock draw and 61-point win check, then add trump card swap action.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Brisca (Spain). (n.d.). Games of Countries. https://gamesofcountries.com/games/es-spain/brisca
@misc{gamesofcountries-es-spain-brisca,
title = {Brisca (Spain)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/es-spain/brisca}
}