View unanswered posts | View active topics It is currently Thu Aug 13, 2020 9:01 pm

Reply to topic  [ 2 posts ] 
Leftover Time 
Author Message

Joined: Thu May 02, 2013 10:52 am
Posts: 22
Post Leftover Time
What am I supposed to do with any extra time to get it to count towards the shortest time?
Tie Breaker 1 – the player that scores the highest amount of points in the shortest amount
of time wins; the Internal Timer tracks times in milliseconds.
Am I supposed to have a while(true){} at the end of my code until the clock runs outs? Or what am I supposed to do?

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

Thu Jun 06, 2013 6:09 pm
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post Re: Leftover Time

Hi tr24em,
We probably need a better way to handle this (like actually having a Game Stop Button), but yes a while(true){} will do the trick. If you get bored, you can also waste time more quickly by switching start points using the Switch Robot window; this won't impact your ranking at all (I believe the rules say something about using number of resets as a tie breaker, but since we record the time to 0.0001 of a second, we won't ever get there as a criteria).


P.S. For anyone who's confused, we record the time at which you achieved your highest score and submit that at the end of the time period. This prevents you from having twitch-click a stop button in order to get the best time possible.

Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT

Thu Jun 06, 2013 6:27 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

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

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.