summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
Diffstat (limited to 'snake.py')
-rw-r--r--snake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/snake.py b/snake.py
index 1edcc49..022f897 100644
--- a/snake.py
+++ b/snake.py
@@ -92,6 +92,7 @@ class SnakeEngine(object):
else:
apple_score = len(bot[2])
self.results.write('%s,%s,%s\n' % (name, apple_score, time_score))
+ self.results.flush()
def update_snakes(self, directions_id=id(directions)):
assert id(directions) == directions_id, \