+ """Increment world.turn, send game turn data to everyone.
+
+ To simulate game processing waiting times, a one second delay between
+ TURN_FINISHED and NEW_TURN occurs; after NEW_TURN, some expensive
+ calculations are started as pool processes that need to be finished
+ until a further INC finishes the turn.
+ """
+ from time import sleep
+
+ def stringify_yx(tuple_):
+ return 'Y:' + str(tuple_[0]) + ',X:' + str(tuple_[1])
+
+ if self.pool_result is not None:
+ self.pool_result.wait()