I\'m really really sorry, but as a warning: we\'re going to reset the ladder again soon to fix some more ladder bugs.
' +
'
(btw if you couldn\'t tell the ladder screens aren\'t done yet; they\'ll look nicer than this once I\'m done.)
' +
'
';
if (!window.BattleFormats) {
this.$el.html('
Loading...
');
return;
}
var curSection = '';
for (var i in BattleFormats) {
var format = BattleFormats[i];
if (!format.rated || !format.searchShow) continue;
if (format.section && format.section !== curSection) {
curSection = format.section;
buf += '
' + BattleLog.escapeHTML(curSection) + '
';
}
buf += '';
}
buf += '
';
this.$el.html(buf);
} else if (this.curFormat === 'help') {
this.showHelp();
} else {
var format = this.curFormat;
var self = this;
var prefix = this.curSearchVal && toID(this.curSearchVal);
this.$el.html('
Loading...
');
if (app.localLadder) {
app.send('/cmd laddertop ' + format + (prefix ? ' ,' + prefix : ''));
} else {
$.get('/ladder.php', {
format: format,
server: Config.server.id.split(':')[0],
output: 'html',
prefix: prefix
}, function (data) {
if (self.curFormat !== format) return;
var buf = '
';
self.$el.html(buf);
}, 'html');
}
}
},
submitSearch: function (e) {
e.preventDefault();
this.curSearchVal = this.$('input[name=searchval]').val();
this.update();
},
showHelp: function () {
var buf = '
';
buf += '
How the ladder works
';
buf += '
Our ladder displays three ratings: Elo, GXE, and Glicko-1.
';
buf += '
Elo is the main ladder rating. It\'s a pretty normal ladder rating: goes up when you win and down when you lose.
';
buf += '
GXE (Glicko X-Act Estimate) is an estimate of your win chance against an average ladder player.
';
buf += '
Glicko-1 is a different rating system. It has rating and deviation values.
';
buf += '
Note that win/loss should not be used to estimate skill, since who you play against is much more important than how many times you win or lose. Our other stats like Elo and GXE are much better for estimating skill.