Skip to main content
Formal Specification

Twenty-Five / Spoil Five — Formal Specification

Ireland · card · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: directGap-fills: 3
# Fiche a Cúig — AI-optimized specification ## General idea A trick-taking card game played with a standard 52-card deck where card rankings are inverted between red and black plain suits, and three permanent "honours" (5 of Trumps, Jack of Trumps, Ace of Hearts) outrank all other cards with the legal privilege to "renege" (refuse to follow trump leads unless a higher honour is played). Players score 5 points per trick to reach a 25-point threshold, with cutthroat table dynamics balancing personal trick capture against blocking ("spoiling") imminent runaway winners. ## Formal model - **Abstraction taken:** None required (`fidelity_class: direct`). The traditional card rankings, reneging privileges, robbing mechanisms, and trick scoring map directly to a discrete finite-state game engine. - **Player/agent count:** 5 discrete agents in standard free-for-all tournament configuration. - **Turn model:** Sequential clockwise trick play across 5-trick deals until an agent reaches 25 points. ## Formal rules R1. Initialization: Standard 52-card deck is shuffled. Five cards are dealt to each agent; one card is turned face up as `Trump_Indicator`. Scores initialized to 0 for all agents. Dealer position advances clockwise after each deal. R2. Robbing phase: - If `Trump_Indicator.rank == ACE`, the dealer agent may execute `rob_trump(discard_card)` before the first trick. - If an agent holds `Ace of Trump Suit`, that agent may execute `rob_trump(discard_card)` to swap the trump indicator card into their hand before playing to trick 1. - [gap-fill] If an agent fails to declare and execute robbery before the opening lead is resolved, the robbery privilege is forfeited for that deal. R3. Card ranking evaluation: - Highest trump: `5_of_trump` > `J_of_trump` > `A_of_hearts` > `A_of_trump` (if non-hearts) > `K_of_trump` > `Q_of_trump` > numeric trumps (Red: 10 down to 2; Black: 2 up to 10). - Plain red suits: `K` > `Q` > `J` > `10` down to `2` > `A` (Diamonds only). - Plain black suits: `K` > `Q` > `J` > `A` > `2` up to `10`. R4. Trick play legality: - Active agent plays 1 card from hand to the current trick. - If a plain suit is led: agent must either follow suit or play a trump. If void in the led suit, any card may be played. - If a trump is led: agent must follow trump suit, with the following Reneging exception: * `5_of_trump` may always renege against any lower trump lead. * `J_of_trump` may renege unless `5_of_trump` was led. * `A_of_hearts` may renege unless `5_of_trump` or `J_of_trump` was led. * All other trumps must follow suit if held. R5. Trick resolution: The trick is awarded to the agent who played the highest trump, or highest card of the suit led if no trumps were played. Trick winner leads to the subsequent trick. R6. Scoring & victory: - Each trick won awards +5 points to the capturing agent's score. - If any agent reaches ≥ 25 cumulative points at the conclusion of a deal, the agent with the highest score immediately wins. - [gap-fill] Turn cap: If no agent reaches 25 points within 15 deals, the agent with the highest score at deal 15 wins; exact ties share victory or resolve via 1 tie-breaker deal. ## Edge cases - Tie at the end condition: If two agents reach ≥ 25 points on the same deal (e.g. 25 vs 25), the agent who took the trick that pushed them over 25 first in sequence wins. If tied on final points simultaneously, [gap-fill] one sudden-death deal is played. - A player with no legal move: Impossible; an agent with cards in hand always has at least one valid card conforming to suit-following/sluff rules. - Repetition / cycles: Hand strictly decrements by 1 card per trick; deals are strictly bounded. - Simultaneous claims on the same resource or position: Not applicable; trick play and declarations are strictly sequential clockwise. - Player elimination mid-round: If an agent disconnects/forfeits, their remaining cards are declared dead and folded; remaining agents continue trick play. - Resource exhaustion: Exactly 5 cards per agent are dealt from the 52-card deck; no redraw or draw pile is used during trick play. - Termination guarantee: Monotonically increasing point accumulation combined with the 15-deal cap guarantees termination. ## State representation - Persistent state: Cumulative scores `score[agent_id]`, dealer index, deal number. - Per-player state: Private hand `cards` (list of up to 5 cards), agent seat index, tricks won in current deal. - Per-turn ephemeral state: Current trick cards `[(agent_id, card)]`, lead suit, active agent index, trump suit, robbery status. - Observable information: Discard pile, visible trick cards, current trump indicator card, past trick histories, and all players' cumulative scores. Private hands are hidden. ## Action space - `play_card(card_id)`: Select and commit a legal card to the active trick. - `rob_trump(discard_card_id)`: Swap held trump Ace (or dealer privilege) with the turned-up trump card. - `decline_rob()`: Pass on robbing privilege. ## Playability notes - Single-player-vs-AI: Highly natural and strategically deep; classic imperfect-information card game requiring belief state tracking of trump honours. - Group games (n>4): Standard 5-player setup is directly simulable. - Physical-skill games: Not applicable (pure discrete card game). - What is lost: The social banter, table signaling, and festive atmosphere of parish hall card drives. ## Implementation hints Create a static lookup table or comparator function for card rankings based on active `trump_suit`. Carefully isolate the `reneging` logic in the move validator to avoid improper illegal move rejections when honour trumps are withheld against low trump leads.

Download as JSON

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

Download JSON
Cite this page

Twenty-Five / Spoil Five (Ireland). (n.d.). Games of Countries. https://gamesofcountries.com/games/ie-ireland/fiche-a-cuig

@misc{gamesofcountries-ie-ireland-fiche-a-cuig,
  title = {Twenty-Five / Spoil Five (Ireland)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ie-ireland/fiche-a-cuig}
}