From 43e1de9a436affa7c081fe7bb4e51ba3a1947a1e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 20 Aug 2017 21:12:13 +0200 Subject: [PATCH] Extend INC command results. --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 0a0ac88..e9b519d 100755 --- a/server.py +++ b/server.py @@ -131,7 +131,8 @@ class CommandHandler: self.send_to(connection_id, reply) def cmd_inc(self, connection_id): - """Increment world.turn, send NEW_TURN message to all clients.""" + """Increment world.turn, send TURN_FINISHED, NEW_TURN to everyone.""" + self.send_all('TURN_FINISHED ' + str(self.world.turn)) self.world.turn += 1 self.send_all('NEW_TURN ' + str(self.world.turn)) -- 2.30.2