r/hearthstone • • 14h ago

Competitive I built a Hearthstone AI and reached Legend with a 91% winrate.

0 Upvotes

First, an apology. I played ranked with my bot's advice on screen. That is cheating, and I'm sorry to everyone I faced. The bot never clicked anything (I played every move by hand, following an overlay), but that doesn't change much: the decisions were its own. I did it because I had no other real benchmark. Self-play against my own older versions tells me if a version is better than the previous one, not if it can beat humans. The ladder was the only test I had.

Results

97 ranked games with C'Thun Warlock, Nov 2-29, all played with the overlay: 73-24 (75%).

The last version (PPO policy at iteration 12,250, plus search) went 32-3 (91%) from Nov 27 to Nov 29, including a 17-game win streak, and reached Legend (#10,344) from Plat3.

PeriodAdvisorRecordWin rate
Nov 2-15Turn search (hand-tuned, then learned value net)26-1465%
Nov 19-22PPO policy (~400k params) + search E15-768%
Nov 27-29PPO policy (1.2M params) + search E32-391%

The Legend game (1.5x speed, names blurred; the overlay is the box top left):

https://www.youtube.com/watch?v=eFugLLiASDQ

The deck

Only C'Thun Warlock, because I couldn't afford another deck. The last policy was also fine-tuned on this exact list.

AAECAf0GBK3ZB9vgB6D2B/OJCA2PnwTnoASEmQfd1wew2Qex2Qe32QeN3AfX6Qfp+Qf6iQj7iQinkggAAA==

  • 2x Cursed Catacombs (0)
  • 2x Ritual of C'Thun (1)
  • 2x Drain Soul (2)
  • 1x Godfather Kazakus (3)
  • 2x Hellfire (3)
  • 2x Imp Gang Stooge (3)
  • 2x Caged Cranium (3)
  • 2x Ritual of Excess (3)
  • 1x Godfrey the Betrayer (4)
  • 2x Spawn of C'Thun (4)
  • 2x Crystalline Golem (4)
  • 2x Spire of Solitude (5)
  • 1x Kith'ix (6)
  • 2x Gargantuan Slitherer (6)
  • 2x Annihilation (8)
  • 1x C'Thun, Eye of the Empire (10)
  • 2x The Unseen Atlas (10)

How it works

Simulator. A C# engine that reimplements the current Standard cards. The overlay reads Hearthstone's Power.log, rebuilds the game state in the engine and asks the bot for the next action, after every action. To check the engine, every game (mine and 1,000 public Legend games) is replayed action by action through it: 96.4% of checkable actions in the Legend games reproduce the real result exactly.

Hidden information. The opponent's deck archetype is guessed from the cards seen so far, weighted by real Legend frequencies. The search then samples "worlds": a full opponent hand and deck drawn from that archetype's list (minus cards already shown), my own deck shuffled, random effects fixed.

Step 1: hand-made search, then a learned value net (Oct 25 - Nov 16)

The first bot was a turn search with a hand-tuned evaluation. I then replaced the evaluation with a value net (~180k params) trained on Legend replays and self-play, and tuned the search a lot (exhaustive turn search, then a beam search: 40 lines over 2 worlds). Each tweak gave 1-4 points in self-play, then it plateaued. Not much success: ~65% on ladder.

Step 2: PPO self-play from zero (Nov 17 - 27)

No imitation of humans or of the old bot: the network starts random and only plays against itself.

  • Input: what the player sees. Global features (health, mana, mana left this turn, C'Thun powers used, Rituals completed, etc.) and entity slots (7 + 7 board, 10 hand, secrets), each with a learned card embedding. From r2 on, the last 60 cards played by each player.
  • Network: set encoders over the slots, a shared trunk, a value head, and a policy head that scores each legal action from the trunk plus the encodings of its source and target. Mulligan is learned too (keep or replace, card by card).
  • Training: clipped PPO, GAE, reward 1 / ½ / 0, 2 epochs per batch, fp16 on an RTX 3060. The C# engine plays ~1,000 games/s on 12 threads.
RunParamsResult
r1198,59415.4M games; 45% vs the beam search bot
r2398,722bigger card embeddings + played cards; 52% vs the beam bot, with ~350x less compute per game
r3 / r5398,722 / 472,418fine-tuned on my list; r5 adds mana left, C'Thun counters, Rituals; 76% vs the beam bot (my list vs meta decks)
r7-1M1,205,458inference moved to the GPU (C# engine ↔ Python by batches), ~770 games learned/s; trained general, then fine-tuned on my list for 29.6M games until it plateaued; it 12,250: 55% vs r5

(All matches: 1,000 to 5,000 games, played in pairs with the same shuffle and swapped sides.)

Step 3: E, a small search on top of the policy

The policy alone is strong but sometimes sure of a bad move. E fixes some of that:

  1. If the policy gives one action more than 99%, play it.
  2. Otherwise take its 4 most likely actions and play each one in the same 64 sampled worlds.
  3. In each world, the policy plays both sides until the start of my next turn; the value head scores that position.
  4. Keep the policy's favorite unless another candidate beats it by more than 2 standard errors of the paired differences.

Stopping at my next turn was better than playing to the end (+4 points, 3x faster): the value head is reliable at the start of a turn, and 20 simulated turns add noise. E with r2 beat r2 alone 63.8% and the beam bot 66.3%. E with r7-1M beats E with r5 53.5%. It takes ~0.3-0.6 s when it searches.

Step 4: lethal and "free" attacks (added on the last day, Nov 29)

  • Lethal module. Before E, a depth-first search of my turn computes the best probability to kill this turn (random effects weighted, 3 s budget; a quick upper bound on damage skips 80% of decisions in 8 ms). Certain lethal: play the whole line. Probable lethal: add the line as an E candidate and judge it by expected outcome. On my 123 archived games, turns where the advice missed a ≥50% kill went from 15 to 1.
  • Free attacks. A hard rule: if the advised action destroys my own minions (Annihilation, for example) and they can still attack the face, attack first. The policy almost never needed it in self-play, but it did against humans.

What would you improve?

Weak points I know of:

  • It sometimes plays a random-target card before attacks that would have cleared the targets.
  • It doesn't read the opponent's hand from their plays (I tried weighting the sampled worlds by the opponent's likely hand: worse in matches).
  • One deck only. Fine-tuning on my list didn't hurt its play with other decks in self-play, but they were never tested on ladder.
  • It sucks at temporary cards - especially playing Catacombs

What do you think it should learn next, as a player or as an ML person? And what would be a fair way to benchmark it against humans without ladder?


r/hearthstone • • 12h ago Bravo

Discussion There's nothing wrong with "The Good Card" deck design

0 Upvotes

Hey all, J_Alexander back today to chime in regarding the question I've seen floating around of whether or not we should nerf Aya, and what ideas are behind that feeling.

There is a somewhat vocal section of players who dislike just about anything, and Aya Rogues are no exception. The deck isn't too powerful anywhere on ladder. It's not exceedingly popular anywhere on ladder. And when a deck isn't too strong or too common, the next point of complaint is usually "It has a bad play experience," which is where some are at there.

The main point of contention on the complainer side is, "Aya has such a large mulligan and drawn premium that it feels bad when the opponent draws it (because then I'm much more likely to lose, and lose earlier in the game than I'd prefer). It's just a one card, I win the game, button".

On the time front, yes. The deck is indeed on the faster ones, winning or losing games on the earlier side of things. It's as fast as Zoolock and Burn Mage, and slightly faster than Pirate Warrior. In does tend to win or lose games decently fast, depending on when it did (or didn't) draw Aya by. If you don't like fast decks and think all these decks need to go, I understand that. I don't think it's too big of a deal myself as a bigger picture idea, but I understand.

However, I disagree with this being some sort of design or play experience issue. Cards and decks like Aya are totally fine space to explore in general. They're even desirable.

The upshot of cards like Aya is that they make unique, meaningfully different decks and strategies exist by encouraging players to build decks in ways they typically wouldn't and use cards they typically don't. It helps make the game feel diverse and interesting when you have many decks that feel different to play and play against.

In this instance, Aya Rogue does feel substantially different than Herald Rogue to play and play against. It also plays a number of cards other decks typically wouldn't touch (because they're bad without Aya), including Garona's Last Stand, Whip, Deadly Bribe, Hooktail, Portal Vanguard, Deja Vu and arguably the coin generators like Agent and Bookie which aren't impressive cards on their own, just looking at some popular lists. It also discourages playing larger number of legendaries for Garona to tutor Aya more consistently, forcing other restrictions in deckbuilding.

These differences in card choices and deck builds help make meaningfully different strategies exist when compared with people just running the most generically useful cards available on raw efficiency. On that front, it's worth noting that Aya decks are not just one card I win the game buttons. Almost every card and choice within the deck is tailored towards making Aya better. The opportunity cost a player incurs to make Aya work is massive and spread across dozens of different cards. It's both why she looks so good when you draw her and it's why all Rogue decks don't just jam a copy of Aya in them. Aya needs to look amazing in the deck, because if she didn't why would I be playing Hooktail, Deadly Bribe, and the rest?

We have other examples of this in Standard right now. What other card do you see a lot of, which substantially changes how you build decks, and encourages players to run lots of cards they otherwise wouldn't touch, but might not think of the same way?

Mugzee.

That card is making two separate archetypes exist which play meaningfully differently and use unusual cards. No one just builds a deck of no minions or no spells on their own without a massive payoff for doing that. Yet because of a card like Mugzee, people are playing terrible minions like Firefly, Prize Vender, and Curator at times, or bad spells like Wanted Poster, Blazing Invocation, or Mountain Map.

Mugzee's effect is so powerful it encourages wildly different decks to be built. The difference is simply that Mugzee is a start of game effect, rather than an on play one. If you take Aya out of Coin Rogue, the entire deck falls apart because the deck is built around that card. If you take Mugzee out of a Mug or Zee Shaman, you get a similar result for a similar reason.

In terms of their design and impact on the game, Mugzee and Aya are very similar cards. The real difference is Aya draws more attention to herself when she gets played during a game and Mugzee is quieter about it. But the foundations are very much the same.

Strangely, I've not seen anyone who wants to nerf Aya talk about reworking her and a variety of other cards to accomodate a "start of game" effect because that would be a smoother play experience. They just want her deleted.

But we even have other examples of cards just like Aya that also encourage you to build unusual decks with cards we don't usually see and are very good when you draw them. They're called Highlander or Reno decks. You build an otherwise suboptimal deck with unusual cards so when you draw your payoff cards, they're extremely powerful. And players generally really like Highlander archetypes. I've seen much less talk about why Highlander cards are bad design, actually. Because I don't think they are.


r/hearthstone • • 10h ago

Fluff Do you have days where nothing goes your way

0 Upvotes

Was gonna push to legend on the final day as I finally have some time, but holy fuck I have been getting shat on in terms of RNG - I'm like 3-5 today or something. Do guys think sometimes you just have days where nothing goes your way and days where everything you think of just happens and you have perfect RNG?

Right I am aware it's a card game but it feels so weird how you know after a couple of games you are doing NO climbing today; maybe blizzard have copied winners and losers queue but in terms of RNG (hello fellow league players lol)


r/hearthstone • • 6h ago

Discussion How do so many players convince themselves that they play perfectly when their results show the exact opposite?

16 Upvotes

We've all seen the posts. "Why can't I climb?" "I'm stuck in Diamond and I've tried everything, nothing works." "I can't climb because of rng."

And then any response along the lines of "what are you doing to learn from your mistakes" or "you gotta learn how to play your deck" is seen as a personal attack and either completely dismissed or argued. "I know how to play" "I know what I'm doing" "There's nothing left to learn" etc.

Almost every post I see thats "asking for help" just gets defensive and argues with anyone offering actual good advice. My question is, why? If any response offering good advice is going to met with such vitriol, why make the post "asking for help" in the first place?

I'm a regular top 100 player, finishing at least top 200 every month, and I misplay constantly. Like, every game. If I'm at the top of the ladder misplaying every game, how does someone struggling in the low ranks convince themselves that they play perfectly and that they have no mistakes to learn from? Anyone can open up a twitch stream and see top legend players making mistakes and calling themselves out for it, so how does one look at that, then look at their own games in low mmr losing to bad players and think they are playing perfect and have nothing to learn?

Just seems like a super backwards mindset and lots of players could benefit by shifting away from that kind of thinking. Both in their own skill and in how much fun they have playing. Playing like shit and them blaming the game over and over again without ever learning sounds exhausting and not fun. So why do it? Even the best players make mistakes all the time, there's no shame in playing poorly. The shame is in making a bad play and then pretending you lost because of rng.


r/hearthstone • • 5h ago

Highlight This is so stupid

Thumbnail
gallery
0 Upvotes

I still think Atiesh needs some attention

Arcane shot from informant
Malygos from 1 mana spell

However it rather shows state of game, poor guy had really nothing to do in order to counter it


r/hearthstone • • 9h ago

Wild Can we please remove this card already? Wild is already toxic but this card left alone since day 1

Post image
0 Upvotes

r/hearthstone • • 12h ago

Discussion Is there an extra condition? I clearly played him in two games, but only one counted.

Post image
0 Upvotes

r/hearthstone • • 5h ago

Fluff Oh my.. N’zoths

Thumbnail
gallery
0 Upvotes

r/hearthstone • • 22h ago

Discussion Just found out imp-formant doesn't work with God-frey

Thumbnail
gallery
15 Upvotes

Not sure if this is a repost.

I was trying out an imp-formant deck to finish an achievement when I met another warlock deck that runs Godfrey. Was hoping for imp-formant to trigger and to be summoned on my board but nope went to the opponent's hand.

I mean I kind of understand that's how Godfrey works but damm Imp-formant really is just garbage. What are the devs thinking???

Can I IMP-lore the dev team to IMP-rove this card?

Also why is this a warlock card, feels more like a rogue card to me.


r/hearthstone • • 22h ago

Wild this is why i hardly climb in wild lmao aint no one got time for this

Post image
0 Upvotes

rng somehow gave me the win here but i wanted to see how long this could go and the guy won't add me and tell me his longest match :(


r/hearthstone • • 15h ago

Discussion Which playstyle do you enjoy the most? Aggro, Combo, Control

6 Upvotes

Of course, I am aware that many decks do not fall neatly into any one of them, but I am generalizing for the sake of conversation.

Aggro: High accessibility in terms of:

a) cost (tend to be cheap in terms of dust cost as they normally feature a lot of commons and rares and limited legendaries and epics)

b) time per game (for those that want to get in a game and have limited or short window, aggro games generally end quickly; either you successfully defeat them or you run out of gas and concede within a certain number of turns; and faster games means faster climbing up the ranks)

c) lower skill floor and ceiling (generally easier and more straightforward to pilot compared to slower decks, in other words, more casual-friendly)

Last but not least, there is also the hilarity and amusement of defeating your opponents quickly before they get to pull off their game plan or win conditions.

Combo: The satisfaction and buildup of gathering your "Exodia" pieces or win conditions and bursting your opponents down within a single turn.

Control: The satisfaction of winning the attrition battle by slowly and gradually wearing your opponents out and grinding them down through value generation, card advantage, board clear, efficient trading, and big and flashy minions and spells in the late game.


r/hearthstone • • 20h ago

Discussion Looking for Face Hunter deck list

Post image
0 Upvotes

Hunter mains or aggro deck lovers, what are your best take or list for a Face Hunter in the current meta?

It does not have to be legend worthy (currently hovering around Gold 5, ranks is not my concern), tier 1 or even contains a lot (if at all) of cards from the latest expansion, just your best version of the face hunter archetype.

For reference, the attached list is the free loaner version for Escape from Violet Hold (the previous expansion, not the latest one)


r/hearthstone • • 5h ago

Fluff Ammunae needs a nerf

Post image
191 Upvotes

Card might as well be written as 8 mana 6/6 win the game.


r/hearthstone • • 3h ago

Discussion Remind me again how Yogg is good?

0 Upvotes

This is my every interaction when I play him lol. Either skips lethal or finds a way to make me draw 20 cards and fatigue out. Sometimes both.


r/hearthstone • • 12h ago

Competitive Is it worth to start in 2027?

0 Upvotes

Hey guys
I have never played this game before. Is it worth to start in the se days?
Theres a high amount of players on?
Theres some competitive tournaments alive?
Is this a play to win card game?

Sorry but i just cant handle magic anymore and theres no Lorcana/F&B online so im looking for something New.


r/hearthstone • • 9h ago

Battlegrounds Wow

Post image
1 Upvotes

r/hearthstone • • 6h ago

Battlegrounds Is this a scam or am I just stupid?

Thumbnail
gallery
1 Upvotes

So I thought mishmash would gain +10/+10 each time I played a minion and the amalgam gained +5/+5 in hand.

Alas, the amalgam grew in hand but mishmash must have been a shower.

What mechanic did I miss? It seemed like a no-brainer to me..


r/hearthstone • • 8h ago

Discussion Lost Butcher Quest

0 Upvotes

I was like 200 damage away from completing the 6666 damage quest in the special event when I got to 4000 crystals just from playing a match. The quest disappeared and I can’t get the mythic loot. This really sucks and doesn’t feel fair.


r/hearthstone • • 12h ago

Discussion Aggro and tempo players are some of the most entitled players in the game

0 Upvotes

As in "the game should only cater to my tastes ane needs. People want a slower game that lasta 15-20+ minutes? Screw them. All about me, me meeeee and my Tiktok brain that can't handle anything for longer than 5 minutes!"

us control and slow game enjoyers get crumbs in comparison, and we maybe get a bone very two years or so, but for 95% of the year, aggro and tempo players get their fill, but when slower game players ask for their fill, aggro and tempo players get upset and don't want to share their toy. Because they are the only ones that matter in their view.


r/hearthstone • • 8h ago

Discussion Dark Gift Setesh doesn’t have Taunt Bug 🫤

Post image
6 Upvotes

r/hearthstone • • 18h ago

Standard Just managed to hit Legend with this AYA Rogue

Thumbnail
gallery
0 Upvotes

It performs quite well and consistently against all classes except Paladins. I’m not sure if it’s a matter of my own skill or if Paladin is genuinely a hard counter, but I’ve found it very difficult to play against them more often than not, I’ve ended up losing.

I’ve had some losses like when Yogg used a Shaman’s Typhoon shuffled all the Golems into my deck honestly, that wasn’t much fun, but it’s all surmountable. Good luck to everyone trying to reach Legend in these final days!

AAECAaIHCMODB4aoB4eoB4ioB+WvB6XYB4jZB8OLCAuRnwT3nwTZogbBlwfHrge0wQfFwQfVxQek2AeR2QeN2gcAAA==


r/hearthstone • • 5h ago

Discussion Hearthstone power creep:

Post image
393 Upvotes

r/hearthstone • • 10h ago

Arena Really, game? For real?

10 Upvotes

r/hearthstone • • 5h ago

Discussion I thought they fixed this? What do I have to do to make this journal thing go away???

Post image
0 Upvotes

I finished the journey, clicked on every event, finished all quests, have no rewards or feats. How do I make the explanation mark go away???