Formal Specification
Czech Marriage (Trick-taking Card Game) — Formal Specification
Czechia · card · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 1
# Volený mariáš — AI-optimized specification
## General idea
A formal 3-player asymmetric trick-taking game with strict priority constraints (mandatory suit-following, mandatory heading/overtrumping, mandatory trumping). One active soloist declares trump, discards two cards to private score, and attempts to fulfill declared point contracts against a cooperative defense.
## Formal model
- **Abstraction taken:** Direct representation. The traditional physical 32-card deck and trick-taking rules are completely discrete and formally specified without loss.
- **Player/agent count:** 3 agents (). Forehand is .
- **Turn model:** Strictly sequential clockwise trick play (10 tricks of 3 cards each).
## Formal rules
R1. Setup: 32 cards (4 suits 8 ranks). Deal: receives 4 cards, chooses trump suit , then receives 3 cards; receive 5 cards each. Second pass: 5 cards to all. discards 2 cards to `talon_score` (cannot discard Aces or Tens unless no other cards exist).
R2. Contracts: declares contract .
R3. Doubling phase: Defenders may announce `FLEK` (doubling multiplier ). Soloist may respond `RE` ().
R4. Trick lead: leads first trick. Winner of trick leads trick .
R5. Legal card constraints (Mandatory resolution hierarchy):
- Given led suit :
- (1) If agent holds cards in : Must play from . If holding a card in higher than current winning card in trick, must play higher card (*mandatory heading*).
- (2) If agent has no cards in : Must play a trump from suit if held. If a trump is already winning the trick, must play a higher trump if held (*mandatory overtrumping*).
- (3) If agent has neither nor : May discard any card.
R6. Trick evaluation:
- Highest trump wins the trick.
- If no trumps played, highest card of wins the trick.
R7. Marriages (*Hlášky*): When leading a trick, an agent holding King and Over-Knave of the same suit scores 20 points (40 in trump suit ) if declared at lead time.
R8. Hand scoring:
- Points: 10 per Ace, 10 per Ten, 10 for winning trick 10 (*Ultimo*), plus marriage points. Total base card points = 90.
- Standard contract: Soloist wins if ; defenders win otherwise.
- Sedma contract: Soloist must additionally win trick 10 with the 7 of trump suit .
R9. [gap-fill] Equal points edge case: If total points end exactly 65–65 (possible without marriages: 45 vs. 45), the hand is scored as a draw (0 stake transfer).
## Edge cases
- Tie at the end condition: In standard contract, a 65–65 tie results in a neutral draw (R9).
- A player with no legal move: Not applicable; an agent with card always has at least one legal card satisfying R5.
- Repetition / cycles: Not applicable; 10 tricks strictly consume all 30 held cards.
- Simultaneous claims on the same resource: Sequential play; trick winner is uniquely determined by R6.
- Player elimination mid-round: Disconnection forfeits hand with maximum `RENONC` penalty paid to opponents.
- Resource exhaustion: Monotonically reaches 0 cards after 10 tricks.
- Termination guarantee: Provably terminates after exactly 10 tricks 3 card plays.
## State representation
- Persistent state: `trump_suit: int`, `contract: int`, `stake_multiplier: int`, `scores: [int, int, int]`, `talon_points: int`.
- Hand state: `hands: list[list[Card]]` (10 cards each after discard).
- Ephemeral trick state: `trick_cards: list[tuple[int, Card]]`, `current_lead: int`, `trick_number: int`.
- Observable information:
- Private: Agent's own hand; talon contents known only to .
- Public: Played cards in past tricks, trump suit, declared contract, marriages declared, trick counts.
## Action space
- `declare_trump(suit: Suit)`
- `discard_talon(c1: Card, c2: Card)`
- `declare_contract(contract_type: Contract)`
- `doubling_action(action: {PASS, FLEK, RE})`
- `play_card(c: Card)`: Subject to R5 legal filter.
## Playability notes
- Single-player-vs-AI: Highly natural; 1 human vs. 2 cooperating AI defenders.
- Group games (n>4): Standard pub rotation: 4 players at table, dealer sits out active hand.
- Physical-skill games: Direct discrete card logic; no motor skill proxy required.
- What is lost: Face-to-face psychological tells and pub card-slamming banter (*bouchnutí kartou*).
## Implementation hints
Low state complexity, high strategic depth. The trick-legality validator (R5) must strictly enforce the four-tier constraint hierarchy. Perfect test suite: verify that renonc validator rejects non-heading when a higher card of the led suit is present in hand.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Czech Marriage (Trick-taking Card Game) (Czechia). (n.d.). Games of Countries. https://gamesofcountries.com/games/cz-czechia/marias
@misc{gamesofcountries-cz-czechia-marias,
title = {Czech Marriage (Trick-taking Card Game) (Czechia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/cz-czechia/marias}
}