home · contact · privacy
Empty client log before each new turn.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 20 Dec 2019 02:10:18 +0000 (03:10 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 20 Dec 2019 02:10:18 +0000 (03:10 +0100)
new/example_client.py

index 27960057766110908af16a304b7b91d2a63dd256..bd8bcfd1a8a9667f762e74b22414cb13e860663a 100755 (executable)
@@ -79,6 +79,7 @@ cmd_TURN_FINISHED.argtypes = 'int:nonneg'
 
 def cmd_TURN(game, n):
     """Set game.turn to n, empty game.things."""
+    game.log_text = ''
     game.turn = n
     game.things = []
     game.pickable_items[:] = []