diff --git a/maze.py b/maze.py index a956310..51715f7 100644 --- a/maze.py +++ b/maze.py @@ -286,13 +286,13 @@ while True: print('ignore') continue move() - y=createJson() - ser.write(str(y).encode()) f = open('output.txt', 'w', encoding=('utf-8')) for j in maze: print(j) f.write(str(j)) f.write('\n\n') f.close() + y=createJson() + ser.write(str(y).encode()) except: pass