Add usage instructions
Add tests
Add license
Need a shitty maze solver for a CTF? Well here you go.
from maze import solve_maze
original = """
#############################
#@..#.........#...#.........#
###.#####.#.#.#.#.###.#####.#
#.#.....#.#.#...#.#...#...#.#
#.#####.#.#.#####.#.#####.#.#
#.....#.#.#...#...#.....#.#.#
#.#####.#####.#.###.###.#.#.#
#.......#.....#...#.#...#...#
#.#######.#######.#.#.###.###
#.#.....#.#.....#.#.#...#...#
#.###.#.#.#.###.#.#.###.###.#
#.....#.#.#.#...#.#...#...#.#
#######.#.###.###.#######.###
#.#.....#...#...#.......#...#
#.#.#####.#.###.#######.#.#.#
#...#.....#...#...#.....#.#.#
#.###########.###.#.#######.#
#.......#.....#...#.#.......#
#######.#.#####.#.#.###.###.#
#...#...#...#...#.#.....#.#.#
#.#.#.###.#.#.###########.#.#
#.#...#...#.#.........#.....#
#.#####.###.#.###.#.###.#####
#...#.#.#.#.#.#...#.#...#...#
###.#.#.#.#.#.#.#.###.###.#.#
#...#.....#.#.#.#.#...#...#.#
#.#########.#.#.###.###.###.#
#...........#.#.........#...#
#########################*###
"""
maze = [row.strip() for row in original.strip().split("\n")]
solution = solve_maze(maze, "@", "*", "#")
print("".join(map(lambda d: d.value, solution))) # eesseeeesssswww...