You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all print statements should be printed to stderr, NOT stdout (printing to stdout will break the program) i.e. print(stuff, file=sys.stderr
in addition to the expected results, please check ALL other items in obs['player_0'] (or whatever player number) to make sure everything makes sense (e.g. obs['player_0']['resetting'] is not True while the players should be alive). if smth seems off, pls flag it
if the respawning bombs and boosts are annoying, at line 208 change self.place_boost_bomb(rate = 0.1) to self.place_boost_bomb(rate = 0). make sure you don't commit this change
once done, @ me in the comments and explain what you found
Tests
Scenario 1
for each action, a bot gets 1 second to return an action. After 1 second, the environment will eat into the bot's remainingOverageTime, which starts at 60 seconds. If that's exhausted, the environment will take no action from the bot and make it go forward
e.g.
iter 1: bot takes 10 seconds to respond, 50 secs left in remainingOverageTime
iter 2: bot takes 10 seconds to respond, 40 secs left in remainingOverageTime
...
iter 6: bot takes 10 seconds to respong, 0 secs left in remainingOverageTime
iter 7: bot stalls for 1 sec, after which the env stops waiting since the bot is out of remainingOverageTime
so, test this by using asyncio.wait -- make the bot wait some amount of time, and print remainingOverageTime each iteration
Expected Results
as above
make sure to test this for a bunch of different asyncio.wait values (e.g no wait, .1 sec, .5 sec, 1 sec, 10 sec, etc)
print(stuff, file=sys.stderrobs['player_0'](or whatever player number) to make sure everything makes sense (e.g.obs['player_0']['resetting']is notTruewhile the players should be alive). if smth seems off, pls flag itself.place_boost_bomb(rate = 0.1)toself.place_boost_bomb(rate = 0). make sure you don't commit this changeTests
Scenario 1
remainingOverageTime, which starts at 60 seconds. If that's exhausted, the environment will take no action from the bot and make it go forwardremainingOverageTimeremainingOverageTimeremainingOverageTimeremainingOverageTimeasyncio.wait-- make the bot wait some amount of time, and printremainingOverageTimeeach iterationExpected Results