Skip to main content
Formal Specification

Greasing (Zsírozás / Zsíros) — Formal Specification

Hungary · card · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 0
# Zsírozás — AI-optimized specification ## General idea A point-trick card game where suits are completely disregarded and trick capture is determined strictly by rank-matching or playing wild 7s. Tricks can escalate into multi-card back-and-forth bidding duels for ownership of high-value point cards (Aces and 10s, "fats"). ## Formal model - **Abstraction taken:** None — direct discrete state machine model of the complete 32-card card system. - **Player/agent count:** 2 agents (Agent 0, Agent 1) or 4 agents in fixed partnerships `(0,2)` vs `(1,3)`. - **Turn model:** Alternating sub-trick plays within an open trick battle, followed by a refill phase from the draw stock. ## Formal rules R1. Deck: 32 cards across 8 ranks (`Ace`, `10`, `King`, `OverKnave`, `UnderKnave`, `9`, `8`, `7`), 4 copies of each rank. Points: `Ace` = 10, `10` = 10; all other ranks = 0. Total points in deck = 80. R2. Deal: 4 cards dealt to each agent. Remaining 24 cards form the draw `Stock`. R3. Trick Battle Cycle: - Leader plays initial card `C_init`. - `current_target_rank = rank(C_init)`. - `current_winner = leader`. - Non-leader responds with `C_resp`: - If `rank(C_resp) == current_target_rank` OR `rank(C_resp) == '7'`: - `current_winner = non_leader`. - Leader may choose to continue the trick battle by playing another card `C_counter` where `rank(C_counter) in [current_target_rank, '7']`. - Battle alternates until the active agent plays a non-matching card or chooses `pass_trick()`. - Otherwise (`rank(C_resp)` does not match and is not 7): - Leader takes the trick immediately. R4. Trick Award: All cards played during the trick battle are awarded to the pile of `current_winner`. R5. Hand Refill: Agents draw cards sequentially from Stock to restore hands to 4 cards, starting with the trick winner. R6. Stock Exhaustion & End Play: When Stock is empty, agents play remaining hand cards without refilling until all hands are empty. R7. Scoring: - Count number of Aces and 10s captured in tricks. Score = `count(Aces) * 10 + count(10s) * 10`. - If `score > 40`: Agent/team wins 1 Game Point. - If `score == 40`: Winner of the final trick of the deal wins 1 Game Point. - If `score == 80`: Winner scores 2 Game Points. - If loser won 0 tricks: Winner scores 3 Game Points. ## Edge cases - Tie at the end condition: If both sides capture exactly 40 points (4 fats each), the winner of the final trick is awarded the win (R7). - A player with no legal move: Not applicable — any card held in hand is legal to play on any turn. - Repetition / cycles: Bounded — each played card leaves the active hand; total deck size is 32 cards, guaranteeing termination in at most 8–16 trick steps. - Simultaneous claims on the same resource or position: Actions are strictly sequential; trick ownership updates deterministically per R3. - Player elimination mid-round: Hand terminates when all 32 cards are played. - Resource exhaustion (pieces, tokens, space, time): All 32 cards conserved across hands, stock, and score piles. - Termination guarantee: Enforced by finite card deck and strictly decreasing total playable cards. ## State representation - Persistent state: `match_points[2]`, `deal_number`. - Per-deal state: `hands[players] (card multi-sets)`, `stock (list of cards)`, `captured_fats[players]`, `tricks_won_count[players]`. - Ephemeral state: `active_trick_cards (list)`, `target_rank`, `current_trick_winner`, `active_agent_id`. - Observable Information: - Common: Stock size, cards in current trick, trick history, match scores. - Private: Own hand cards (hidden from opponent). ## Action space - `play_card(card_id)`: Selects a card from hand to play into active trick. - `pass_trick()`: Concedes trick to current winner when matching is optional. ## Playability notes - Single-player-vs-AI: Excellent — dynamic bluffing environment for imperfect information tree search (MCTS / POMDP). - Group games (n>4): Plays seamlessly in 2v2 partnership mode with hidden signal conventions through card discards. - Physical-skill games: Pure discrete strategy. - What is lost: The psychological intimidation of rapid-fire card slamming during an escalating multi-Seven trick battle. ## Implementation hints Extremely clean discrete implementation. State can be packed into a single 64-bit integer or lightweight struct. First milestone: implement the 2-player trick battle recursion and verify that all 80 points are conserved and scored properly across simulated random deals.

Download as JSON

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

Download JSON
Cite this page

Greasing (Zsírozás / Zsíros) (Hungary). (n.d.). Games of Countries. https://gamesofcountries.com/games/hu-hungary/zsirozas

@misc{gamesofcountries-hu-hungary-zsirozas,
  title = {Greasing (Zsírozás / Zsíros) (Hungary)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/hu-hungary/zsirozas}
}