22 lines
1.0 KiB
Markdown
22 lines
1.0 KiB
Markdown
A Maze Solution Finding Algorithm
|
|
|
|
This program was initialy posted to Reddit as a command line application that produced a folder full of PNG files representing the maze solution. It was only after you concatenated these images together to create a flip-book style movie that you got an appreciation of the graphics.
|
|
|
|
Rather than outputting these PNG files to a folder, how about outputting them to a GUI window?
|
|
|
|
That's where the idea of adding on a GUI came to be. An hour later and this was the result.
|
|
|
|
You are first asked to choose the TXT file representing the maze.
|
|
|
|
Then you'll be shown the maze and an animation of it being solved.
|
|
|
|
You can view this program without the source code here:
|
|
|
|
https://pysimplegui.trinket.io/sites/maze
|
|
|
|
Here is how it looks running on windows:
|
|
|
|
![SNAG-0671.jpg](/api/files/5e1916d5a331f489609a4bfb/snag-0671.jpeg "SNAG-0671.jpg")
|
|
|
|
<iframe src='https://trinket.io/embed/pygame/75c51d0bf3?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|