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
you only need one bot for this one
try not to turn off bombs/boosts, if possible
player0 captures territory going up to the edge (make sure to do this step first so that you can enclose the entire board)_
using this territory, player_0 encircles the entire board from edge to edge
Expected Results
player_0 should own the entire board. Perform the below checks:
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 inobs['player_0']
(or whatever player number) to make sure everything makes sense (e.g.obs['player_0']['resetting']
is notTrue
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 changeself.place_boost_bomb(rate = 0.1)
toself.place_boost_bomb(rate = 0)
. make sure you don't commit this change 4) once done, @ me in the comments and explain what you foundTests
Scenario 1
Expected Results
-o test
, which outputs to test.json. upload test.json to the replay script: https://colab.research.google.com/drive/1ncSEI2xelHIanrWlnqZVIWYn51UTqq7g?authuser=1#scrollTo=zUWD3nDJ4kOi)board = obs['board']['board_state']
player_owned = obs['board']['players_state']
player_num = obs[self.player]['player_num'])
PASSED = 1
occupied_territory = np.where(np.logical_and(board != PASSED, player_owned == player_num))
num_squares = len(occupied_territory[0])
num_squares
should decrease for player_0 every time player_1 enters player_0's territoryScenario 2
Expected Results
-o test
, which outputs to test.json. upload test.json to the replay script: https://colab.research.google.com/drive/1ncSEI2xelHIanrWlnqZVIWYn51UTqq7g?authuser=1#scrollTo=zUWD3nDJ4kOi)board = obs['board']['board_state']
player_owned = obs['board']['players_state']
player_num = obs[self.player]['player_num'])
PASSED = 1
occupied_territory = np.where(np.logical_and(board != PASSED, player_owned == player_num))
num_squares = len(occupied_territory[0])
num_squares
should be 0 for player_0 and should be all enclosed space for player_1