View unanswered posts | View active topics It is currently Mon Aug 10, 2020 3:26 pm

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Decimal part of score
Author Message
Rookie

Joined: Thu May 02, 2013 10:52 am
Posts: 22
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.

_________________
What is easy you have done, what is hard you can do, what is impossible will take a little longer

Tue Aug 27, 2013 4:41 pm

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
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

_________________
Ryan Cahoon
RVW Software Developer

Tue Aug 27, 2013 4:58 pm
Rookie

Joined: Thu May 02, 2013 10:52 am
Posts: 22
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.

_________________
What is easy you have done, what is hard you can do, what is impossible will take a little longer

Tue Aug 27, 2013 5:13 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 3 posts ]

Who is online

Users browsing this forum: No registered users and 0 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning