4 ms·
I thought that maybe the ranking was real.. no its not function getRank(score) { // TODO we should add a real ranking one day var ONE_BARELY_REACHES_
by mkoryak 12y ago
I thought that maybe the ranking was real.. no its not
function getRank(score) {
// TODO we should add a real ranking one day
var ONE_BARELY_REACHES_THIS_SCORE = 200;
return Math.floor(100 * Math.min(Math.E * score / (ONE_BARELY_REACHES_THIS_SCORE * Math.PI), 1));
}
- flares 12y agoWTH?? then why release it in the first place.. That's the only crucial step in this whole concept..
- tuxone 12y agoIt can't be the crucial step since one could open javascript console and type foo=true;$("#question-answer").bind('keydown', function(){if(foo)$("#question-answer").val(eval($("#question").html()));$("#question-answer").keyup();foo=!foo;});
- flares 12y agookay.. now so.. what is the crucial step in this whole thing? is it generating random numbers with random operators i between them and evaluating whether the solution given by the user is correct and count the number of correct responses?? By crucial step i meant the logic on how he calculates the percentage of people below.. how it changes when the operators used are changed.(is it dependent on operators in the first place? ) and when the range is changed? etc..
- tankenmate 12y agoIndeed somehow I managed to do better than 100% of people with a score of 432; I thought it was a reasonably good result but hardly worthy of 100%.
- bausson 12y agoDamn, and I was so proud of my best score.