Formal Specification
Sheep's Head — Formal Specification
Germany · card · Confidence: high
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: directGap-fills: 1
# Schafkopf — AI-optimized specification
## General idea
A 4-player imperfect-information trick-taking game using a 32-card German deck. The game features an auction phase to establish contracts, where the primary contract (*Rufspiel*) creates a dynamic, hidden partnership between the declarer and the secret holder of a designated non-trump Ace. The 14-card trump structure elevates all Obers and Unters above standard suit cards, emphasizing strategic point dumping (*Schmieren*) and card counting toward the 61-point victory threshold.
## Formal model
- **Abstraction taken:** None required; the traditional game rules constitute a fully discrete, formal state-transition system.
- **Player/agent count:** Exactly 4 agents, indexed clockwise .
- **Turn model:** Strictly sequential, clockwise trick-taking rotation.
## Formal rules
R1. **Deck & Deal:** The deck contains 32 cards: 4 suits (Acorns , Grass , Hearts , Bells ) 8 ranks (Ace/11, 10/10, King/4, Ober/3, Unter/2, 9/0, 8/0, 7/0). Sum of card points is 120. Each agent is dealt 8 private cards.
R2. **Bidding Phase:** Starting from forehand (), each agent submits a contract bid . Higher priority contracts override lower ones: .
R3. **Partnership Formation (Rufspiel):** If contract is , the declarer must hold at least one card of suit and cannot hold the Ace of suit (). The agent holding becomes the secret partner (). The other 2 agents form the defending team ().
R4. **Trump Hierarchy (Rufspiel):**
- High Trumps: Obers in suit order (ranks 1..4), then Unters in suit order (ranks 5..8).
- Suit Trumps: Heart cards (ranks 9..14).
- Non-Trump Suits: Acorns, Grass, Bells (each ranking ).
R5. **Trick Play:** Exactly 8 tricks are played. Forehand leads trick 1.
- An agent leading a trick may play any legal card in hand.
- Subsequent agents must follow suit (*Bedienpflicht*): if led card is a trump, agent must play a trump if held; if led card is a non-trump suit , agent must play a card of suit if held.
- If unable to follow suit, any card may be played (trump or slough).
- If the called suit is led, the partner holding is legally obligated to play (*Sau-Suchpflicht*).
R6. **Trick Winner:** Highest-ranking trump card wins the trick; if no trump is played, the highest-ranking card of the led suit wins. Winner collects all 4 cards and leads the next trick.
R7. [gap-fill] Default on Pass:** If all 4 agents bid `Pass`, the hand is automatically resolved under a default *Ramsch* contract where each agent plays individually and the agent with the highest card points takes penalty points.
R8. **Scoring & Victory:** At the end of trick 8, card points in tricks won are summed per side ().
- Declarer party wins if .
- Defenders win if .
- Bonus conditions: points = *Schneider*, 8 tricks won = *Schwarz*.
## Edge cases
- Tie at the end condition: Exactly 60–60 points results in a loss for the declarer party under standard tournament rules.
- A player with no legal move: Impossible; a player holding card always has at least one legal card to play per R5.
- Repetition / cycles: Impossible; exactly 8 tricks are executed, consuming exactly 4 cards per trick, terminating after exactly 32 played cards.
- Simultaneous claims on the same resource or position: Turns and card plays are strictly sequential.
- Player elimination mid-round; turn order repair: Disconnection results in immediate forfeit of the active hand to the opposing partnership.
- Resource exhaustion (pieces, tokens, space, time): All 32 cards are consumed in exactly 8 tricks.
- Termination guarantee: why the game provably ends: Guaranteed because total card count decreases strictly by 4 cards per trick, terminating at trick count 8.
## State representation
- **Persistent state:** Contract type, declaring agent ID, called suit/Ace, secret partner ID (revealed when is played or when partner announces), running team scores.
- **Per-player state:** Private 8-card hand, collected trick pile, running points won.
- **Per-turn ephemeral state:** Current trick cards , trick lead suit, active player index.
- **Observable information:** Imperfect information; private hands and the secret identity of the called partner are hidden until cards are played. All played cards, trick outcomes, and public bids are common knowledge.
## Action space
- `bid(contract_type, params)`: parameter .
- `play_card(card_id)`: parameter `card_id` . Precondition: obeys suit-following (*Bedienpflicht*) and called-Ace constraints.
## Playability notes
- Single-player-vs-AI: Engine-ready; 1 human player with 3 heuristic/MCTS AI agents.
- Group games (n>4): Exactly 4 players; in 5-player tables, the dealer sits out each hand (*Geber setzt aus*) in cyclic rotation.
- Physical-skill games: Not applicable; pure discrete abstract card game.
- What is lost in the adaptation: Table banter, eye contact, and subtle Bavarian facial tells.
## Implementation hints
Standard trick-taking game architecture. High strategic depth stems from hidden partnership inference during early tricks and counting the 14 trumps. First milestone: implement legal card filter with *Bedienpflicht* and verify 60/61 scoring logic across 10,000 random deals.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Sheep's Head (Germany). (n.d.). Games of Countries. https://gamesofcountries.com/games/de-germany/schafkopf
@misc{gamesofcountries-de-germany-schafkopf,
title = {Sheep's Head (Germany)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/de-germany/schafkopf}
}