From 73e20b16a620992c447ce5862c4aa547743add29 Mon Sep 17 00:00:00 2001 From: Thefeli73 Date: Sun, 27 Sep 2020 14:45:23 +0200 Subject: [PATCH] fix broken code, now playable --- game_layer.py | 4 ++-- main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game_layer.py b/game_layer.py index a20cdcf..3f555c0 100644 --- a/game_layer.py +++ b/game_layer.py @@ -6,8 +6,8 @@ from game_state import GameState class GameLayer: def __init__(self, api_key): - self.game_state: GameState = None - self.api_key: str = api_key + self.game_state = GameState + self.api_key = api_key def new_game(self, map_name: str = "training0"): """ diff --git a/main.py b/main.py index bb4483f..cb9d3f6 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ api_key = "74e3998d-ed3d-4d46-9ea8-6aab2efd8ae3" # TODO: Your api key here # The different map names can be found on considition.com/rules map_name = "training1" # TODO: You map choice here. If left empty, the map "training1" will be selected. -game_layer: GameLayer = None +game_layer = GameLayer(api_key) def main():