Skip to content

Commit

Permalink
Adding todos for removing constants.set_dimensions once HaliteChallen…
Browse files Browse the repository at this point in the history
…ge#78 is done
  • Loading branch information
coreylowman committed Dec 8, 2018
1 parent 98cdeb0 commit 42b0aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions starter_kits/Python3/hlt/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def load_constants(constants):
INSPIRED_MOVE_COST_RATIO = constants['INSPIRED_MOVE_COST_RATIO']


# TODO remove once width/height are sent by server (#78)
def set_dimensions(width, height):
global WIDTH, HEIGHT
WIDTH = width
Expand Down
1 change: 1 addition & 0 deletions starter_kits/Python3/hlt/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self):
self.me = self.players[self.my_id]
self.game_map = GameMap._generate()

# TODO remove once width/height are sent by server (#78)
constants.set_dimensions(self.game_map.width, self.game_map.height)

def ready(self, name):
Expand Down

0 comments on commit 42b0aec

Please sign in to comment.