This website requires JavaScript.
Explore
Help
Sign In
sm
/
maze
Watch
1
Star
0
Fork
0
You've already forked maze
Code
Issues
Pull Requests
Activity
d20f51b986
maze
/
bin
/
solve_maze.py
7 lines
90 B
Python
Raw
Normal View
History
Unescape
Escape
implemented parsing and printing of mazes
2012-10-25 22:05:38 -07:00
import
sys
do one thing, do it well this script should only be used to solve the puzzle and print the solution if one is found. I will do this by returning 0, and printing the solution to stdout, or returning 1 on failure
2012-10-25 22:37:56 -07:00
from
maze
import
parse_maze
implemented parsing and printing of mazes
2012-10-25 22:05:38 -07:00
added testing, using pipes
2012-10-25 22:32:44 -07:00
m
=
parse_maze
(
sys
.
stdin
.
read
(
)
)
started to think about solving the maze
2012-10-30 22:29:47 -07:00
print
m
.
solve
(
)
Reference in New Issue
Copy Permalink