Skip to content

Walks a maze using A* and prints out solved path using alphabet letters

License

Notifications You must be signed in to change notification settings

kirillsimin/astar_alphabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A * alphabet maze walker

Walks a maze using A* and prints out solved path using alphabet letters

Requirements

Python 3

Sample usage

Use case 1

run in your terminal:

python3 maze.py Paste any legitimate puzzle, such as this:

###_#########
#___________#
#_##_______##
#_##________#
#_###########
#_###########

Press Ctrl+D

Use case 2

Save your maze in a text file. Cat your text file and pipe it to the script

cat maze.txt | python3 maze.py

Output

If the script is able to find a solution, it will print it out, as follows:

###a#########
#dcb________#
#e##_______##
#f##________#
#g###########
#h###########

Unit Tests

Run python3 -m unittest maze_test.py

About

Walks a maze using A* and prints out solved path using alphabet letters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages