maze/bin/p2.py

14 lines
238 B
Python

import sys
from maze import parse_maze, CS235Maze
m = parse_maze(sys.argv[1])
assert m[7][0][0] == 0
assert m[7][3][0] == 1
assert m[7][0][1] == 0
assert m[3][3][3] == 1
assert m[5][2][6] == 1
assert m[7][5][4] == 0
print CS235Maze(m)