From the course: Python Data Structures and Algorithms

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Pathfinding algorithms in the course maze GUI

Pathfinding algorithms in the course maze GUI - Python Tutorial

From the course: Python Data Structures and Algorithms

Pathfinding algorithms in the course maze GUI

- [Instructor] In this video, we're just going to take a quick look at the code that generates the GUI that you've been working with on this course. So if we go into GUI Code and let's look at search dot PY. So this is an imported file that the GUI uses, and it contains the same data structures that we've been working with. So it has a priority queue. Then it has the algorithms. Now these algorithms are very similar to what we've done in the videos specific to each algorithm with one difference. And the main difference is that I wanted to create the full path. So rather than just coming up with the final path and then the opponent executing that kind of best result, I wanted you to see the path being generated. So I've created this variable called full path. And if the code is found that I've written in all the twists and turns in my return valley, rather than just the final path 'cause I didn't think that was as interesting. And that's true for all of them. So in BFS, I've returned…

Contents