Bug in calculation of score?

Post Reply
zeased
Posts: 2
Joined: Wed Jan 06, 2010 10:01 am

Bug in calculation of score?

Post 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.
cutter
Posts: 17
Joined: Mon Jan 12, 2009 12:50 pm

Post by cutter »

Yes that's true. I told adum a few months ago but it seems he hasn't fix it yet.
Zeta
Posts: 62
Joined: Thu Apr 16, 2009 3:37 pm

Post 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 != "".
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

should be fixed now, thanks
Post Reply