Solution to ITA Software's "ASCII A-maze-ment" puzzle.
It solves ASCII mazes like this:
Its output looks like:
Get help:
~/ascii-amazement$ lein run -- -h
Switches Default Desc
-------- ------- ----
-h, --help false Show help
-i, --input false Input maze path
-o, --output false Output maze path
Solve one of ITA's sample puzzles; save it to test-output.txt
:
~/ascii-amazement$ lein run -- -i resources/mazes/input1.txt -o test-output.txt
Check that a solution is identical to ITA's solution:
~/ascii-amazement$ lein run -- -i resources/mazes/input6.txt -o test-output.txt && \
diff test-output.txt resources/mazes/output6.txt
Run unit-tests:
~/ascii-amazement$ lein midje
All checks (8) succeeded.
Copyright © 2013 Tj Gabbour
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.