๐Ÿง  Legend AI Strategy Guide

How the AI thinks, decides, and plays โ€” and how you can learn from it

๐ŸŽฏ Overview โ€” The Five Levels

Every bot in Irish Cards uses the same decision-making engine, but each difficulty level applies that engine with a different probability. The SmartChance value determines how often the bot makes the optimal play vs. a random legal play:

Level SmartChance Behaviour Names From
Beginner 20% Plays randomly ~80% of the time. Sometimes forgets to rob. Bids wildly. Irish Politicians
Novice 45% Follows basic rules about half the time. Occasional missed robs. Irish Celebrities
Semi Pro 70% Decent play. Follows suit intelligently. Reasonable bids. Irish Musicians
Pro 88% Strong play. Saves top trumps. Finds cheap winners. Tactical dumps. Irish Sports Stars
Legend 97% Near-optimal. Aggressive bids. Masterful trump management. Famous Hurlers
๐Ÿ’ก Play Hints When you enable "Play Hints" in the game options, the hint system uses Legend-level AI logic (97% optimal) to recommend which card to play. The green ๐Ÿ’ก badge on a card means that's what a Legend bot would choose.

๐Ÿ‘‘ Card Rankings โ€” What the AI Sees

The AI assigns every card a numeric rank value. Higher number = stronger card. These values drive every decision:

Trump Card Rankings

CardRank ValueTier
5 of Trumps110Untouchable
J of Trumps105Untouchable
๐Ÿƒ Joker100Top Trump (renegable)
Aโ™ฅ95Top Trump (always trump, renegable)
A of Trumps90Power card
K of Trumps85Court card
Q of Trumps80Court card
Number cards50โ€“70Red: 10 highest โ†’ 2 lowest
Black: 2 highest โ†’ 10 lowest

Non-Trump Card Rankings

CardRank ValueNotes
K (of led suit)50Highest non-trump
Q (of led suit)45
J (of led suit)40
Aโ™  / Aโ™ฃ (of led suit)38Black aces sit between J and numbers
Number cards10โ€“30Red: 10 high โ†’ 2 low
Black: 2 high โ†’ 10 low
Aโ™ฆ (not trump)1Lowest card in diamonds!
โš ๏ธ Key Insight: The AI knows rank 100+ cards are "top trumps" The AI treats cards with rank โ‰ฅ 100 (5, J, Joker, Aโ™ฅ) as special. It protects them aggressively, uses them sparingly, and never wastes them trying to win tricks it can win cheaply.

๐Ÿƒ Card Play โ€” The Decision Engine

When it's the AI's turn, there are two completely different strategies depending on whether the bot is leading (first to play in the trick) or following (responding to another player's lead).

๐ŸŸข Leading a Trick

When leading, the Legend AI follows this priority cascade:

STEP 1: Do I have 3+ trumps? โ†’ Yes: Assess what top trumps are still out there (see threat analysis below) โ†’ No: Continue to Step 2 STEP 2: Do I have non-trump Kings or Queens? โ†’ Yes: Lead the highest-ranking non-trump (K or Q are "safe" leads) โ†’ No: Continue to Step 3 STEP 3: Do I have any non-trumps? โ†’ Yes (70% chance): Lead the strongest non-trump โ†’ No: Continue to Step 4 STEP 4: Do I have trumps? โ†’ Yes: Lead your strongest trump to weaken opponents โ†’ No: Play your lowest card

๐Ÿ” Threat Analysis โ€” Card Counting (Legend Only)

The Legend AI tracks every card played across completed tricks. Before leading a top trump, it checks whether the cards that beat it are accounted for โ€” either already played or in its own hand. This is the key difference between Legend and every other level.

LEADING TRUMPS โ€” RISK ASSESSMENT: Holding the 5 of Trumps (rank 110)? โ†’ ALWAYS lead it. Nothing beats the 5. Forces out J, Joker, Aโ™ฅ from opponents. Holding the J of Trumps (rank 105)? โ†’ Has the 5 been played or do I hold it? โ†’ Yes: Safe to lead โ€” only the 5 beats it, and it's gone. โ†’ No: RISKY. The 5 could slap the J. Hold back. Holding the Joker (rank 100)? โ†’ Have both 5 AND J been played / in my hand? โ†’ Yes: Safe to lead. โ†’ No: RISKY. Don't lead it. Holding Aโ™ฅ (rank 95)? โ†’ Have 5, J, AND Joker all been played / in my hand? โ†’ Yes: Safe to lead. โ†’ No: RISKY. Don't lead it. If my best trump is vulnerable? โ†’ Lead a non-trump K or Q instead (safe lead) โ†’ Or probe with a mid-range trump (K, Q, number of trumps) โ†’ Draw out threats without risking a top card
๐Ÿ’ก Strategy Lesson: Lead Strong, But Count Cards First Leading the 5 of trumps is always brilliant โ€” it forces out J, Joker, and Aโ™ฅ while winning the trick. But leading the Jack when the 5 is still out there? That's asking to lose your second-best card for nothing. The Legend AI keeps a mental tally of what's been played and only leads a top trump when the cards above it are accounted for. If they're not, it probes with a mid-range trump or a safe non-trump instead.

๐Ÿ”ต Following a Trick

When following, the AI analyses what's already been played and makes the most economical play:

STEP 1: Calculate the current best card on the table (highest rank among all cards played so far in this trick) STEP 2: Find all my cards that beat the current best (rank > best) STEP 3a: Can I win? Am I last to play? โ†’ Yes: Play the CHEAPEST winner (lowest rank that still wins) โ†’ This is the key Legend skill โ€” never overspend STEP 3b: Can I win? Not last to play? โ†’ Find a "cheap" winner (rank < 105, i.e. not 5 or J of trumps) โ†’ If available: play it. If not: play the cheapest winner anyway STEP 4: Can't win this trick? โ†’ Dump the weakest non-trump card (save trumps for later) โ†’ If only trumps left: dump the lowest trump

๐Ÿ† What a Legend Does

โŒ What a Beginner Does

๐Ÿ“ Positional Awareness

One of the most important concepts the Legend AI uses is positional play โ€” playing differently based on when you act in the trick:

PositionStrategyReasoning
Last to play Play the cheapest winner No one can outbid you. A K of trumps wins just as well as the 5 of trumps if no one else can beat it. Save your big guns.
Not last Play a cheap winner (rank < 105), but be willing to spend more Someone after you might beat a low winner. But still avoid the very top trumps โ€” use mid-range winners that are harder to beat.
Can't win Dump your weakest non-trump Don't waste a trump on a lost cause. Throw away your worst card and live to fight another trick.

๐Ÿค Robbing โ€” The Free Upgrade

In 25 and 45, when a trump is turned up, the dealer (or holder of the Ace of trumps) can rob โ€” swap a card for the turned-up trump.

Legend AI Robbing Strategy

STEP 1: Can I rob? (Am I the dealer with a trump turned up, or do I hold the Ace?) STEP 2: ALWAYS rob. Legends never skip a free card upgrade (97% of the time). STEP 3: Which card do I discard? โ†’ Find the weakest non-trump card โ†’ discard it โ†’ If only trumps: discard the weakest trump (but NEVER the Ace of trumps)
LevelRobs When Available?
Legend97% of the time โ€” almost never misses
ProAlways โ€” no hesitation
Semi ProAlways
Novice85% โ€” occasionally forgets
Beginner60% โ€” misses nearly half the time!
๐Ÿšจ Beginner Mistake: Not Robbing Robbing is always advantageous. You're getting a guaranteed trump card for free. Even if the turned-up card is low (say, a 3 of trumps), it's still better than your weakest non-trump. Never skip a rob unless you have no cards worth discarding (extremely rare).

Joker Turn-Up (Special Case)

If the Joker is turned up as the trump card, a special sequence occurs:

  1. The dealer takes the Joker into their hand
  2. The dealer must discard one card (cannot discard the Joker)
  3. A new card is turned up from the deck to determine the trump suit
  4. If the new card is an Ace, the dealer gets another rob opportunity (very rare double-rob!)

๐Ÿ’ฐ Bidding โ€” The 110 Auction

In 110, players bid for the right to choose trumps and receive the kitty. The Legend AI evaluates its hand strength before deciding how high to bid.

Hand Evaluation

The AI evaluates its hand against every possible trump suit and picks the strongest. For each suit, it scores every card:

Card TypePointsExample
Top trump (rank โ‰ฅ 105): 5 or J of suit+95โ™  when evaluating Spades
High trump (rank โ‰ฅ 95): Joker, Aโ™ฅ+7Aโ™ฅ (always 7 points in any suit)
Ace of trump suit+5Aโ™ฃ when evaluating Clubs
Court trump (K or Q)+3Kโ™ฆ when evaluating Diamonds
Number trump+28โ™ฅ when evaluating Hearts
Non-trump King+2Kโ™ฃ when evaluating Hearts
Non-trump Queen+1Qโ™ฆ when evaluating Clubs
Other non-trumps07โ™ฃ when evaluating Hearts

Bid Decisions by Level

LEGEND BID TABLE: Hand strength โ‰ฅ 32 โ†’ Bid 25 (25% chance of going 60 โ€” Jink!) Hand strength โ‰ฅ 24 โ†’ Bid 25 Hand strength โ‰ฅ 18 โ†’ Bid 20 Hand strength โ‰ฅ 13 โ†’ Bid 15 Hand strength โ‰ฅ 9 โ†’ Bid 10 Hand strength < 9 โ†’ Pass
โš ๏ธ The Dealer Advantage If you're the dealer, you can hold the bid โ€” match the current highest bid to win the auction. The AI knows this and will hold a bid if its calculated bid amount is at least equal to the current bid. This means dealers bid more aggressively.

Bid Aggressiveness by Level

Legend

Bids on strength 9+. Goes for 60 (Jink) 25% of the time with a monster hand (32+). Extremely accurate hand evaluation.

Pro

Bids on strength 10+. Occasionally goes for 60 (15% chance). Small chance (8%) of speculative 10-bid with weak hand.

Semi Pro

Bids on strength 10+. Conservative โ€” caps at 25, never goes for Jink.

Beginner

Bids 10 if strength โ‰ฅ 8. Random 15% chance of bidding 10 with nothing. Chaotic.

๐Ÿ“ฆ Kitty Exchange โ€” Building Your Hand

When you win the bid in 110, you receive 5 extra cards (the kitty) and must discard back to 5. The Legend AI makes this choice methodically:

STEP 1: Evaluate all 10 cards (5 from hand + 5 from kitty) against the chosen trump suit STEP 2: Score each card: Trumps get +1000 bonus + their trump rank value Non-trumps get only their suit rank value STEP 3: Keep the top 5 scoring cards. Discard the rest.
๐Ÿ’ก The +1000 Bonus By adding 1000 to every trump's score, the AI guarantees all trumps are kept over non-trumps. A lowly 2 of trumps (rank ~56) scores 1056, easily beating a non-trump King (rank 50). Trumps are everything.
LevelKitty Strategy
LegendKeeps the optimal 5 cards by rank. Prioritises all trumps, then highest non-trumps.
ProSame as Legend
Semi ProSame as Legend
BeginnerGrabs up to 3 trumps randomly, fills the rest from shuffled hand. Often keeps weak cards.

๐Ÿ›ก๏ธ Reneging โ€” The Secret Weapon

In 25/45/110, certain top trumps have a special privilege: they cannot be forced out unless a higher trump is led. This is called reneging.

CardRankCan Renege When...
5 of Trumps110Always โ€” nothing outranks it
J of Trumps105Everything except 5 of trumps is led
๐Ÿƒ Joker100J or lower is led
Aโ™ฅ95Joker or lower is led
๐Ÿ’ก How the AI Uses Reneging The Legend AI knows exactly when it can renege. If trump is led and the AI holds the 5 of trumps, it checks whether the lead card is lower (which it always is for the 5). If so, the AI can legally keep the 5 in hand and play a non-trump instead โ€” saving its best card for a more critical trick.

๐ŸŽ“ Learn From the Legend โ€” Top Tips

  1. Lead the 5 โ€” always. It forces out J, Joker, and Aโ™ฅ while winning the trick. But don't lead J/Joker/Aโ™ฅ blindly โ€” first check if the cards above them have been played. If the 5 is still out there, hold your Jack.
  2. Win cheaply. If you're last to play and the King of trumps wins the trick, don't play the 5. Save it.
  3. Lead Kings and Queens. Non-trump court cards are strong leads โ€” they often win the trick outright or force opponents to waste a trump.
  4. Dump smart. When you can't win, throw your weakest non-trump. Never waste a trump on a lost trick.
  5. Always rob. A free trump card is always worth taking. Discard your worst non-trump.
  6. Know your position. Playing last is powerful โ€” you know exactly what you need to beat. First to play is a guess.
  7. Count trumps. With 3+ trumps, lead one to draw out opponents' trumps. This thins the field for your power cards later.
  8. In 110, evaluate all four suits. Your best trump suit might not be the one you have the most cards in โ€” it's the one with the highest total rank points.
  9. Renege wisely. Holding back the 5 of trumps when a lower trump is led keeps your insurance policy alive for the next trick.
  10. Use the hints. Enable "Play Hints" in game options to see what the Legend AI would play. It's the best way to learn.