Formal Specification
Thirty and Forty / Rouge et Noir — Formal Specification
Monaco · card · Confidence: low
← Back to game pageImplementation 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 . 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 . Total is . Record color of first card dealt.
R3. Deal cards sequentially into Row 2 (Rouge) until . Total is .
R4. Outcome:
- If : Noir wins.
- If : Rouge wins.
- If and : Push (bets stand).
- If (Refait): 50% house fee on all active bets. [gap-fill]
R5. Color outcome: If winning row matches , Couleur wins; otherwise Inverse wins.
R6. All winning bets pay 1:1. Match ends after coups. [gap-fill]
## Edge cases
- **Tie at the end condition:** is a standard push; 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 .
## 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 JSONCite 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}
}