Skip to main content
Formal Specification

Thirty and Forty / Rouge et Noir — Formal Specification

Monaco · card · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Trente et Quarante — AI-optimized specification ## General idea A formal banking card game with 6 decks. Dealer deals two rows (Noir, then Rouge) until each sum ∈[31,40]. Row closer to 31 wins. Side bet on color match of first card. ## Formal model - **Abstraction taken:** Discrete card shoe state machine (6 standard 52-card decks, 312 cards). - **Player count:** 1 dealer + 1 to N betting agents. - **Turn model:** Wagering phase followed by deterministic card deal resolution. ## Formal rules R1. Card values: Ace=1, 2-10=face value, J/Q/K=10. Suits: Spades/Clubs=Black, Hearts/Diamonds=Red. R2. Deal cards sequentially into Row 1 (Noir) until ∑V≥31. Total is TN∈[31,40]. Record color C1 of first card dealt. R3. Deal cards sequentially into Row 2 (Rouge) until ∑V≥31. Total is TR∈[31,40]. R4. Outcome: - If TN<TR: Noir wins. - If TR<TN: Rouge wins. - If TN=TR and TN>31: Push (bets stand). - If TN=TR=31 (Refait): 50% house fee on all active bets. [gap-fill] R5. Color outcome: If winning row matches C1, Couleur wins; otherwise Inverse wins. R6. All winning bets pay 1:1. Match ends after K=100 coups. [gap-fill] ## Edge cases - **Tie at the end condition:** TN=TR>31 is a standard push; TN=TR=31 triggers Refait rule. - **A player with no legal move:** Agent can always choose to bet 0 (pass). - **Repetition / cycles:** Reshuffle shoe when penetration exceeds 75%. - **Simultaneous claims on the same resource or position:** Independent betting bankrolls resolve against the house. - **Player elimination mid-round:** Bankrupt players exit. - **Resource exhaustion:** Shoe reshuffled when cut card reached. - **Termination guarantee:** Fixed coupon cap K=100. ## State representation - **Persistent state:** `shoe: List[Card]`, `shoe_index: int`, `bankroll: Dict[player_id, float]`. - **Per-coup state:** `bets: Dict[player_id, Dict[spot, float]]`, `row_noir: List[Card]`, `row_rouge: List[Card]`. ## Action space - `place_bet(spot: Noir|Rouge|Couleur|Inverse, amount: float)` ## Implementation hints Deal rows to 31–40 and compare — the resolution is deterministic given the shoe. Expected value follows from the shoe composition, so the only meaningful state to track is remaining-card distribution. ## Playability notes - **Agent decision problem:** a single betting action against a fixed dealing procedure. The card deal is chance; the player never influences it, so this is a wagering problem, not a strategic one. - **Group play (n>2):** any number of bettors resolve independently against the same deal; no interaction between them. - **What formalisation loses:** nothing mechanical. Table etiquette and stake limits are social, not part of the decision problem. - **Content note:** the entry carries a `gambling-stake` flag; the spec models wagers as abstract stake units. ## Implementation hints Deal rows to 31–40 and compare — the resolution is deterministic given the shoe. Expected value follows from the shoe composition, so the only meaningful state to track is remaining-card distribution.

Download as JSON

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

Download JSON
Cite this page

Thirty and Forty / Rouge et Noir (Monaco). (n.d.). Games of Countries. https://gamesofcountries.com/games/mc-monaco/trente-et-quarante

@misc{gamesofcountries-mc-monaco-trente-et-quarante,
  title = {Thirty and Forty / Rouge et Noir (Monaco)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/mc-monaco/trente-et-quarante}
}