shouldn't have used an optional param
This commit is contained in:
@@ -2,8 +2,10 @@ import sys
|
||||
|
||||
from maze import parse_maze
|
||||
|
||||
|
||||
if len(sys.argv) == 2:
|
||||
m = parse_maze(open(sys.argv[1], 'r').read())
|
||||
else:
|
||||
m = parse_maze(sys.stdin.read())
|
||||
sys.setrecursionlimit(m._size * 1000)
|
||||
print m.solve()
|
||||
|
||||
Reference in New Issue
Block a user