Skip to content

QA # 1: Simple Collisions #20

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

  • 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions