Page 1 of 1

Bug in calculation of score?

Posted: Wed Feb 10, 2010 3:13 pm
by zeased
Could it be possible, that you get points for a challenge on the site http://www.hacker.org/challenge/top.php even if you send a wrong answer? The number of solved challenges only increases if the answer is right, but the score increases also for wrong answers, when you try a challenge for the first time.

Posted: Wed Feb 10, 2010 4:26 pm
by cutter
Yes that's true. I told adum a few months ago but it seems he hasn't fix it yet.

Posted: Wed Feb 10, 2010 4:45 pm
by Zeta
Yes, looks like that for me.

In http://www.hacker.org/challenge/map/get.php you can see three possibilties for the solved parameter in the XML data:
  • solved="1" (You solved the challenge)
  • solved="0" (You tried and gave a wrong answer)
  • solved="" (You never tried to give an answer to this challenge)
The number of points shown in the highscore is the sum over chal.difficulty**2 for every challenge chal with chal.solved != "".

Posted: Fri Feb 26, 2010 10:45 pm
by adum
should be fixed now, thanks