Skip to content

QA #5 Overage Time #25

@arth-shukla

Description

@arth-shukla
  1. all print statements should be printed to stderr, NOT stdout (printing to stdout will break the program) i.e. print(stuff, file=sys.stderr
  2. 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
  3. 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
  4. 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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions