ROBOTC.net forums
http://www.robotc.net/forums/

Decimal part of score
http://www.robotc.net/forums/viewtopic.php?f=68&t=6659
Page 1 of 1

Author:  tr24em [ Tue Aug 27, 2013 4:41 pm ]
Post subject:  Decimal part of score

How is the decimal part of the score determined? It seems to be based on the amount of time left on the clock but doesn't quite follow it. The reason I am asking is that I thought it would be the time left on the clock showing the tie breaker as per the rules:
Quote:
1. The highest score in the shortest amount of time. (i.e. The game is 120 seconds long. If
the player has completed all of the scoring at 115 seconds they can press the Game
Stop Button to stop the game. If two Players have the same score, the score completed
in the shortest amount of time is the winner.)


However this chart shows what scores I got:

time left on | decimal
the clock | score
----------------------------
16 | .16
22 | .21
32 | .28
36 | .30

*These are mostly from memory

So I was curious how the decimal part is determined, if anything I do can penalize me (time wise) other than the Touching Penalty, and if anyone/everyone else is experiencing this or if it is just me.

Author:  rcahoon [ Tue Aug 27, 2013 4:58 pm ]
Post subject:  Re: Decimal part of score

Hi tr24em,
The score at any given time is calculated as follows:

Code:
submitScore = ringScore + timeRemaining / matchDuration


The ringScore is the score that is displayed in the score box on the screen, timeRemaining is the time left in the match in seconds (with time lost due to touch penalties factored in), and matchDuration is length of the match in seconds (120). The game calculates this on every update cycle, and stores the highest value of submitScore for submission when the match ends.

Since the ringScore is always a whole number, the fractional part of your score is the fraction of time remaining in the match when you achieved your highest score. If this happened with 36 seconds remaining, then 36 / 120 = 0.30. The rest of your samples seem to be a little bit off - my best guess would be that you didn't look at the timer until a couple seconds after you placed your last ring, but let us know if you find any bugs in the scoring.

Cheers,
--Ryan

Author:  tr24em [ Tue Aug 27, 2013 5:13 pm ]
Post subject:  Re: Decimal part of score

Ok, thank you very much. Most of those were from memory and estimates of time so they weren't necessarily accurate.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/