Sign in to follow this  

RoShamBo Programming Competition

This topic is 4647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

That comment was directed towards my frustration with gettimeofday(), which isn't used in the Windows version so you don't have to worry. The program seemed to spend way more time in that function than it did running the competition.

I'm sure it wouldn't seem nearly so bad once the bots actually start doing something complex, though.

Share this post


Link to post
Share on other sites
Quote:
Original post by smart_idiot
That comment was directed towards my frustration with gettimeofday(), which isn't used in the Windows version so you don't have to worry. The program seemed to spend way more time in that function than it did running the competition.

I'm sure it wouldn't seem nearly so bad once the bots actually start doing something complex, though.
I think what I'll probably do is merely time an entire match (all 10k throws) with the clock() function, and if it takes too long I'll report the entire match as a tie (0 for both sides) and print that the match took too long. The lack of precise timing in general makes anything else not really viable. Perhaps if a bot times out in too many matches (say 5 matches), it'll be disqualified until the author can rectify the problem. Even with only ~16ms accuracy (on windows I presume that's what it'd be anyways), it's still precise enough to see if 10k throws takes minutes or not. Really, I don't care if one round takes 10 minutes, as long as the average is less than 2 or so minutes.

Share this post


Link to post
Share on other sites

This topic is 4647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this