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
Two bots, player_0 hits player_1's line and dies
Expected Results
player_0 dies
during the rest of the death iteration, in addition to the entirety of the next iteration, player_0 is resetting. while resetting,
obs['player_0']['direction'] should be (-1, -1)
obs['player_0']['resetting'] should be True
obs['player_0']['head'] should be (-1, -1)
obs['player_0']['energy'] should be 0
obs['player_0']['speed'] should be 1
Note: no actions from player_0 should be registered in the env when resetting is set to true.
player_1 continues as normal
once player_0 resets, direction, resetting, and head, should all be values that make sense. actions from player_0 should register in the env now, too
Scenario 2
Two bots, player_0 and player_1 hit each other head-on (NOT each other's lines, but each other's heads)
Expected Results
Both players should reset
The same resetting-related values as in Scenario 1 should be true for both players here. make sure to check them all
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
Expected Results
obs['player_0']['direction']should be(-1, -1)obs['player_0']['resetting']should beTrueobs['player_0']['head']should be(-1, -1)obs['player_0']['energy']should be0obs['player_0']['speed']should be1Scenario 2
Expected Results