Last active
August 29, 2015 13:57
-
-
Save helloluis/9846306 to your computer and use it in GitHub Desktop.
How to find the class distribution for Challonge Hearthstone tournaments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(['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]) }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.