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.
๐ก 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:
โ ๏ธ 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 2STEP 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 3STEP 3:Do I have any non-trumps?โ Yes (70% chance): Lead the strongest non-trumpโ No: Continue to Step 4STEP 4:Do I have trumps?โ Yes: Lead your strongest trump to weaken opponentsโ No: Play your lowest card
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 overspendSTEP 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 anywaySTEP 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
Wins with the cheapest possible card
If last to play and a 9 of trumps beats the table, plays the 9 โ not the Jack
Protects top trumps (rank โฅ 105) unless absolutely needed
Dumps weakest non-trumps when losing
โ What a Beginner Does
Picks a random legal card 80% of the time
Might play the 5 of trumps to win a trick the Q could have won
Dumps trumps unnecessarily
No awareness of position (first vs. last to play)
๐ 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:
Position
Strategy
Reasoning
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)
Level
Robs When Available?
Legend
97% of the time โ almost never misses
Pro
Always โ no hesitation
Semi Pro
Always
Novice
85% โ occasionally forgets
Beginner
60% โ 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:
The dealer takes the Joker into their hand
The dealer must discard one card (cannot discard the Joker)
A new card is turned up from the deck to determine the trump suit
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 Type
Points
Example
Top trump (rank โฅ 105): 5 or J of suit
+9
5โ when evaluating Spades
High trump (rank โฅ 95): Joker, Aโฅ
+7
Aโฅ (always 7 points in any suit)
Ace of trump suit
+5
Aโฃ when evaluating Clubs
Court trump (K or Q)
+3
Kโฆ when evaluating Diamonds
Number trump
+2
8โฅ when evaluating Hearts
Non-trump King
+2
Kโฃ when evaluating Hearts
Non-trump Queen
+1
Qโฆ when evaluating Clubs
Other non-trumps
0
7โฃ 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 suitSTEP 2: Score each card:
Trumps get +1000 bonus + their trump rank valueNon-trumps get only their suit rank valueSTEP 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.
Level
Kitty Strategy
Legend
Keeps the optimal 5 cards by rank. Prioritises all trumps, then highest non-trumps.
Pro
Same as Legend
Semi Pro
Same as Legend
Beginner
Grabs 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.
Card
Rank
Can Renege When...
5 of Trumps
110
Always โ nothing outranks it
J of Trumps
105
Everything except 5 of trumps is led
๐ Joker
100
J or lower is led
Aโฅ
95
Joker 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
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.
Win cheaply. If you're last to play and the King of trumps wins the trick, don't play the 5. Save it.
Lead Kings and Queens. Non-trump court cards are strong leads โ they often win the trick outright or force opponents to waste a trump.
Dump smart. When you can't win, throw your weakest non-trump. Never waste a trump on a lost trick.
Always rob. A free trump card is always worth taking. Discard your worst non-trump.
Know your position. Playing last is powerful โ you know exactly what you need to beat. First to play is a guess.
Count trumps. With 3+ trumps, lead one to draw out opponents' trumps. This thins the field for your power cards later.
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.
Renege wisely. Holding back the 5 of trumps when a lower trump is led keeps your insurance policy alive for the next trick.
Use the hints. Enable "Play Hints" in game options to see what the Legend AI would play. It's the best way to learn.