Skip to main content
Formal Specification

Sixty-Six (Snapszer / Hatvanhat) — Formal Specification

Hungary · card · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 0
# Snapszer — AI-optimized specification ## General idea A two-player card duel using a 20-card deck with non-uniform point values (Aces=11, 10s=10) and marriage bonuses (20/40), where players race to 66 points. The system is defined by an irreversible state transition: an open drawing phase with unconstrained play pivots instantly into a closed phase with compulsory suit-following and overtrumping upon stock exhaustion or manual closure. ## Formal model - **Abstraction taken:** None — direct discrete state machine formalization. - **Player/agent count:** 2 agents (Agent 0, Agent 1). - **Turn model:** Alternating trick play with dynamic leader assignment based on trick winner. ## Formal rules R1. Deck: 20 cards across 4 suits (`Hearts`, `Bells`, `Leaves`, `Acorns`), 5 ranks per suit (`Ace`: 11, `10`: 10, `King`: 4, `OverKnave`: 3, `UnderKnave`: 2). Total card points = 120. R2. Deal: 5 cards to each agent. 1 card turned face-up as `Trump Card`. Remaining 9 cards form `Talon`. R3. Phase 1 (Talon Open) Play: - Leader plays any card `C_lead` from hand. - Follower plays ANY card `C_follow` from hand (no suit/overtrump constraints). - Trick Winner: Highest trump wins; if no trump, highest card of led suit wins. - Post-trick: Winner draws top card from Talon; loser draws next card. Winner becomes next leader. R4. Special Actions (Leader only, Phase 1): - `swap_trump()`: If holding Trump UnderKnave, swap it for the face-up Trump card at bottom of Talon. - `meld_marriage(suit)`: If holding King + OverKnave of `suit`, declare 20 points (plain suit) or 40 points (trump suit) when leading one of them. Points committed upon winning first trick. - `close_talon()`: Irreversibly transitions game into Phase 2 immediately. R5. Phase 2 (Talon Closed / Exhausted) Play: - No drawing occurs. - Follower MUST obey strict constraints: 1. Follow led suit if able (`suit(C_follow) == suit(C_lead)`). 2. Over-head (play higher card of led suit) if able. 3. Trump if void in led suit (and over-trump if possible). 4. Any discard permitted only if void in led suit and void in trump. R6. End Conditions & Claim "66": - At any point after winning a trick, active agent can call `declare_66()`. - If `points >= 66`: Declaring agent wins the hand. - If `points < 66`: Opponent wins the hand immediately. - If all 20 cards are played without a 66 declaration, the winner of the final (10th) trick wins the hand. R7. Match Scoring: - 3 Game Points if loser has 0 card points. - 2 Game Points if loser has 1–32 card points (or if closer failed 66). - 1 Game Point if loser has 33+ card points. - First agent to 7 Game Points wins match. ## Edge cases - Tie at the end condition: If all cards played without a 66 call, the winner of the final trick takes the hand (breaks any tie). - A player with no legal move: Not applicable — hand size decreases deterministically; at least 1 legal card always available in hand. - Repetition / cycles: Impossible — maximum 10 tricks per hand; each trick strictly reduces card count. - Simultaneous claims on the same resource or position: Actions are strictly sequential; 66 declaration is evaluated immediately on action. - Player elimination mid-round: Hand terminates immediately upon a valid/invalid 66 declaration or stock exhaustion. - Resource exhaustion (pieces, tokens, space, time): All 20 cards strictly accounted for across hands, talon, and trick piles. - Termination guarantee: Enforced by finite card deck (max 10 tricks per hand) and monotonic match point increments. ## State representation - Persistent state: `match_points[2]`, `target_match_points (7)`. - Per-hand state: `hands[2] (card bitmasks)`, `talon (card list)`, `trump_card`, `trump_suit`, `is_talon_closed (bool)`, `closer_id`, `card_points[2]`, `melds_active[2]`. - Ephemeral state: `current_trick[2]`, `leader_id`. - Observable Information: - Common: Trump card, talon size, played trick cards, meld declarations, talon closed status. - Private: Own hand cards, opponent's card points (must be mentally tracked from trick history; looking back at taken tricks is forbidden). ## Action space - `play_card(card_id)` - `declare_marriage(suit_id)` - `exchange_trump_knave()` - `close_talon()` - `declare_66()` ## Playability notes - Single-player-vs-AI: Perfect domain for heuristic minimax, MCTS, and deep reinforcement learning (standard benchmark in imperfect information games). - Group games (n>4): Not applicable (inherently 1v1 duel). - Physical-skill games: Purely discrete strategy and card counting. - What is lost: The physical "snap" of slamming cards on wooden tavern tables and human memory slips. ## Implementation hints Engine-ready. State representation requires only small bitmasks for the 20 cards. The key engineering requirement is maintaining Phase 1 vs. Phase 2 legal action generators. First milestone: implement hand deal, Phase 1 unconstrained trick loop, Phase 2 constrained trick loop, and verify against exact 66-point win checks.

Download as JSON

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

Download JSON
Cite this page

Sixty-Six (Snapszer / Hatvanhat) (Hungary). (n.d.). Games of Countries. https://gamesofcountries.com/games/hu-hungary/snapszer

@misc{gamesofcountries-hu-hungary-snapszer,
  title = {Sixty-Six (Snapszer / Hatvanhat) (Hungary)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hu-hungary/snapszer}
}