davecom / MazeSolvingGUI

A simple tkinter GUI for illustrating DFS and BFS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MazeSolvingGUI

A simple tkinter GUI for illustrating depth-first search (DFS) and breadth-first search (BFS). For a well explained version of these algorithms checkout chapter 2 of Classic Computer Science Problems in Python.

Running

Requires Python 3.7+ No external dependencies beyond the Python standard library with tkinter.

python3 maze_gui.py

Note that each time you run a new random maze is generated. You can change the time interval using the drop down on the bottom right. The green square is the start location, red square is the goal, blue square is the current cell being explored, white squares are empty, black squares are blocked, yellow is the cells that have been popped off the frontier, orange cells are still on the frontier, and cyan cells represent the final found path.

Screenshot

License

Released under the Apache License version 2.0. See LICENSE.

About

A simple tkinter GUI for illustrating DFS and BFS.

License:Apache License 2.0


Languages

Language:Python 100.0%