"Mystery ratings" now appear in /rating

This commit is contained in:
Antar1011 2014-01-23 13:15:11 -05:00
parent abc1d1789b
commit 7ec7f1fd3d

View File

@ -556,7 +556,7 @@
if (!data.length) {
buffer += '<tr><td colspan="7"><em>This user has not played any ladder games yet.</em></td></tr>';
} else {
buffer += '<tr><th>Format</th><th>Elo</th><th>GXE</th><th>Glicko-1</th><th>W</th><th>L</th><th>T</th></tr>';
'<tr><th>Format</th><th>Elo</th><th>GXE</th><th>Glicko-1</th><th>COIL</th><th>ARMS</th><th>W</th><th>L</th><th>T</th></tr>';
for (var i=0; i<data.length; i++) {
var row = data[i];
buffer += '<tr><td>'+row.formatid+'</td><td><strong>'+Math.round(row.acre)+'</strong></td><td>'+Math.round(row.gxe,1)+'</td><td>';
@ -565,6 +565,9 @@
} else {
buffer += '<em>'+Math.round(row.rpr)+'<small> &#177; '+Math.round(row.rprd)+'</small></em>';
}
var N=row.w+row.l+row.t;
buffer += '<td>'+Math.round(40.0*row.gxe*Math.pow(2.0,-34.0/N),0)+'</td>';
buffer += '<td>'+Math.round(1000.0+(2*row.gxe-100)*N/4.0,0)+'</td>';
buffer += '</td><td>'+row.w+'</td><td>'+row.l+'</td><td>'+row.t+'</td></tr>';
}
}