If you’re into Hearthstone, you probably see people posting decklists to Twitter, like this:
Thanks to everyone who came out to the stream and @MightyRy_Twitch for the raid! This is the list I hit legend and peaked above top 500 with. Came from HSReplay so not sure who to credit. #Hearthstone
AAECAfe5AgYgqwbCzgL27AKn7gLN9AIMvQHTAZkC/gXZB/AHsQiRwQKbywKW6AKU7wKw8AIA pic.twitter.com/yrysmR6vNf
— Steve Lubitz (@WickedGood)
The big ugly string at the bottom is a deck code, which you can paste into the game to build a copy of the deck. There are also a lot of great tools out there to help improve your game. One of my favourites is HSReplay.net because it keeps track of your card collection via Hearthstone Deck Tracker, so it can show you how much dust1 it would cost you to build a given deck.
I’m a casual player, so this is always the first thing I check. So I wrote a python script to make it easier! You can integrate it with macOS’s Automator, or in iOS via Pythonista, potentially with the help of Workflow. It takes a block of text (of a tweet, for instance) as input, finds the first thing that it thinks looks like a deck code2, and generates an HSReplay.net URL. For instance, if run on the tweet above, it generates this link.
The script is available here.