News for hackers. Stuff that matters.
Re:Ten seconds of math by mkoryak on Wednesday November 26, 2014 @07:23PM (#8665363)
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));
  }
Re:Ten seconds of math by flares on Wednesday November 26, 2014 @11:33PM (#8665998)
WTH?? then why release it in the first place.. That's the only crucial step in this whole concept..
Re:Ten seconds of math by tuxone on Thursday November 27, 2014 @05:35AM (#8666719)
It 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;});
Re:Ten seconds of math by flares on Thursday November 27, 2014 @06:51AM (#8666839)
okay.. 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..

Re:Ten seconds of math by tankenmate on Thursday November 27, 2014 @06:06AM (#8666774)
Indeed 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%.
Re:Ten seconds of math by bausson on Friday November 28, 2014 @03:58AM (#8670198)
Damn, and I was so proud of my best score.