Skip to content

Instantly share code, notes, and snippets.

@helloluis
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helloluis/9846306 to your computer and use it in GitHub Desktop.
Save helloluis/9846306 to your computer and use it in GitHub Desktop.
How to find the class distribution for Challonge Hearthstone tournaments
$(['druid','hunter','mage_13','rogue','warlock','warrior','priest','paladin','shaman']).map(function(){ return [[ ""+this, $(".round1").find("img[src*='" + this + "']").length ]]; }).sort(function(a,b){ return b[1]-a[1]; }).each(function(){ console.log(this[0],this[1]) });
@helloluis
Copy link
Author

Here's how to find out which classes are seeing the most play in your average Challonge-based Hearthstone tournament.

In Chrome, Safari, Firefox, or any other javascript-capable browser with access to the developer console, visit the Challonge tournament bracket page (e.g., http://challonge.com/mgnaswiss15), and open the console.

(In Chrome, you go to View > Developer > Javascript Console)

Then just paste in the line of javascript above and a list of classes and numbers should show up, sorted with the most popular class at the top.

  • Luis (lemniscate#6608)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment