It is currently Wed Jan 17, 2018 8:10 pm Advanced search

Not getting end game info on local simulator

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

Not getting end game info on local simulator

Postby mikes » Fri Nov 25, 2011 7:45 pm

I'm using the python starter kit, and I never seem to get the "end" block of input that the specification says I should get at the end of a game.

I modified the starter kit's "ants.run" function to write all input to stderr, and everything before the 'end' shows up fine. engine.py seems to be sending it to my bot, but my bot never seems to get it.

What am I missing? Has anyone else gotten endgame input from the simulator at the end of a bot's game/when a bot dies?
mikes
Cadet
 
Posts: 3
Joined: Fri Nov 25, 2011 7:28 pm

Re: Not getting end game info on local simulator

Postby amstan » Fri Nov 25, 2011 9:31 pm

I think bots are just killed by the engine.
Why does this matter?
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Not getting end game info on local simulator

Postby mikes » Sat Nov 26, 2011 12:01 am

The reason I'd like it is so I know when the game is over so I can dump information about my bot that is easiest to collect from within the bot.

The only other solution I've found is to dump it after every turn, but the constant IO is killing the rate at which I can run tests.

Obviously this is for local development and not submissions, but I've had a heck of a time making any progress getting 'end' input to my bot.
mikes
Cadet
 
Posts: 3
Joined: Fri Nov 25, 2011 7:28 pm

Re: Not getting end game info on local simulator

Postby McLeopold » Sat Nov 26, 2011 1:15 am

You can add an option to give your bot some time to process the end game info.

--end_wait

I believe it is in seconds.
McLeopold
Contest Organizer
 
Posts: 262
Joined: Sun Sep 19, 2010 3:31 am

Re: Not getting end game info on local simulator

Postby mikes » Tue Nov 29, 2011 2:22 am

I have done this, but don't seem to get any end game info.
mikes
Cadet
 
Posts: 3
Joined: Fri Nov 25, 2011 7:28 pm


Return to Starter Packages & Tools

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron