From 42b0aec5de1585d370286db2c55703876544f649 Mon Sep 17 00:00:00 2001 From: Corey Lowman Date: Sat, 8 Dec 2018 11:44:05 -0500 Subject: [PATCH] Adding todos for removing constants.set_dimensions once #78 is done --- starter_kits/Python3/hlt/constants.py | 1 + starter_kits/Python3/hlt/networking.py | 1 + 2 files changed, 2 insertions(+) diff --git a/starter_kits/Python3/hlt/constants.py b/starter_kits/Python3/hlt/constants.py index 2511caf5f..6f4211ec9 100644 --- a/starter_kits/Python3/hlt/constants.py +++ b/starter_kits/Python3/hlt/constants.py @@ -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 diff --git a/starter_kits/Python3/hlt/networking.py b/starter_kits/Python3/hlt/networking.py index e9c9a39b7..2cb05e32e 100644 --- a/starter_kits/Python3/hlt/networking.py +++ b/starter_kits/Python3/hlt/networking.py @@ -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):