deal with windows files too

This commit is contained in:
Stephen McQuay 2012-10-31 22:03:45 -07:00
parent 091232a21c
commit 5f3384d4f2

View File

@ -67,6 +67,7 @@ def make_maze(size=8):
def parse_maze(maze):
maze = maze.replace('\r', '')
soilded = [[[int(i) for i in j.split()]
for j in k.split('\n')]
for k in maze.split('\n\n') if k]