Skip to content

Commit

Permalink
Uncomment end in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
taslimisina committed Feb 5, 2020
1 parent 7baf803 commit 251db26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def handle_message(self, message):


elif message[ServerConstants.KEY_TYPE] == ServerConstants.MESSAGE_TYPE_SHUTDOWN:
# new_world = World(world=self.world)
# new_world._handle_turn_message(message[ServerConstants.KEY_INFO]["turnMessage"])
# scores_map = new_world._handle_end_message(message[ServerConstants.KEY_INFO]["scores"])
# self.client.end(new_world, scores_map)
new_world = World(world=self.world)
new_world._handle_turn_message(message[ServerConstants.KEY_INFO]["turnMessage"])
scores_map = new_world._handle_end_message(message[ServerConstants.KEY_INFO]["scores"])
self.client.end(new_world, scores_map)
self.terminate()

def launch_on_thread(self, action, world):
Expand Down

0 comments on commit 251db26

Please sign in to comment.