Pathfinding Vizualisation in Python

  Рет қаралды 14,758

Max Rohowsky (Max on Tech)

Max Rohowsky (Max on Tech)

Күн бұрын

Пікірлер: 42
@MaxRohowsky
@MaxRohowsky 4 ай бұрын
🚨Mistake🚨 Hi all, looking back at this video I made a mistake: This video covers the Breadth First Search Algorithm which is a generalised form of Dijkstra. Sorry for the confusion.
@MaxDev
@MaxDev 2 жыл бұрын
Hi, I’d just like to say that I feel like your channel is a hidden gem that’ll soon be shown, your videos are great and the quality is amazing, you don’t need luck just keep going on
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
hey max, thanks! will definitely continue to upload :)
@TheIaTaI
@TheIaTaI Жыл бұрын
Very clear, and the steps to show which part of the code is intuitive thanks!
@MaxRohowsky
@MaxRohowsky Жыл бұрын
Glad you liked it!
@petrdvorak4202
@petrdvorak4202 2 жыл бұрын
What I was looking for, good job
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
awesome!
@Jack-tu3sx
@Jack-tu3sx 2 жыл бұрын
Love your Videos!!
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
jo jack, glad they help!
@Intrasoftware
@Intrasoftware 2 жыл бұрын
wow you did it, by putting onto my head thanks a lot bro ❤ would like to see a video of "A* algorithm" video like this
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
Thanks for the idea!
@abisaitreynaga911
@abisaitreynaga911 2 жыл бұрын
Hey bro, thanks a lot for your time, your explanation it's awesome!!! This will help me a lot to my Algorithms class..
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
You are welcome!
@elaymisgav1879
@elaymisgav1879 2 жыл бұрын
Amazing tutorial thank you!
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
welcome !!
@wren9725
@wren9725 2 жыл бұрын
Dude, really good explanations! You deserve a lot more subs Edit: Do you know why the program crashes instead of drawing the path? I tried following the tutorial, and also tried copying your code from GitHub, but both of them close out of the program after it reaches the target.
@skill3472
@skill3472 2 жыл бұрын
Hi! Try wrapping the while loop for appending the path with a if selbox.prior != None: statement. Should fix the crashing.
@wren9725
@wren9725 2 жыл бұрын
@@skill3472 Hi, thank you for the help, but selbox is not a previously defined value
@skill3472
@skill3472 2 жыл бұрын
@@wren9725 selbox is my name for the current box variable, or whatever it was called in his code
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
Hi Kritherion, sorry for the inconvenience. I seem to have uploaded the wrong file. It's updated on my github now and should work fine I hope.
@wren9725
@wren9725 2 жыл бұрын
@@MaxRohowsky No worries! Thank you for replying, great tutorial!
@akash10ful
@akash10ful 2 жыл бұрын
Thank You for an Amazing video!!!! I learned a lot through it. your style of explaining is really awesome!! I would like to point out just 1 thing in the last section. The code in the video has 1 line missing. But the code in GitHub is complete. else: for neighbour in current_box.neighbours: if not neighbour.queued and not neighbour.wall: neighbour.queued = True neighbour.prior = current_box ------------------------------------------------> This line is missing in the video. queue.append(neighbour)
@MaxRohowsky
@MaxRohowsky Жыл бұрын
Hi Akash10ful, sorry for the late reply on this! Might have been an editing mistake on my part. But thanks for pointing it out!
@TheUSDA__
@TheUSDA__ 6 ай бұрын
Hey akash, thanks so much! Was wondering why "Nonetype" had no attribute prior. This solution works great
@Daniel-tg8du
@Daniel-tg8du 2 жыл бұрын
hi, i keep getting the following error Traceback (most recent call last): line 32, in arr.append(Box(i, j)) TypeError: Box() takes no arguments
@MaxRohowsky
@MaxRohowsky 2 жыл бұрын
make sure that the init method in the box class is correct. You seem to be missing arguments there.
@ErenKıraç-g5m
@ErenKıraç-g5m Жыл бұрын
Great project to do and good explanation,thank you very much! I wanna ask a question : Why didn't we import and use queue module instead of creating an array?
@MaxRohowsky
@MaxRohowsky Жыл бұрын
hey :) glad it helped! queue module would have been an option too :)
@_Baily
@_Baily 8 ай бұрын
Is there a way you can put a map already? Not just clicking to make the walls
@ishansinha1336
@ishansinha1336 Жыл бұрын
other part of the code is working but blue path to the target box is not being showed in my code
@ALIEN_from_MARS
@ALIEN_from_MARS Жыл бұрын
I am getting error [ queue not found ]
@MaxRohowsky
@MaxRohowsky Жыл бұрын
Hi Pi, not sure why that is :(. Try forking the code from my github. Pretty sure that there aren't any errors in there.
@ALIEN_from_MARS
@ALIEN_from_MARS Жыл бұрын
Ok, I will give it a try and hope so it works. Thanks a lot for helping me
@ALIEN_from_MARS
@ALIEN_from_MARS Жыл бұрын
It worked 🎉🎉
@ajeetstationajeet
@ajeetstationajeet Жыл бұрын
Awesome project well I have added a custom start point and created a pull request can u look at it on your repo and merge it
@MaxRohowsky
@MaxRohowsky Жыл бұрын
hey dude! awesome, thanks for contributing! Generally, I don't merge just because I don't want people to get confused when they clone the project and see it's different from the tutorial. But feel free to join my discord- see link in description:))
@ajeetstationajeet
@ajeetstationajeet Жыл бұрын
@@MaxRohowsky right
@56_shivanshrahangdale10
@56_shivanshrahangdale10 Жыл бұрын
Cool
@MaxRohowsky
@MaxRohowsky Жыл бұрын
thanks :)
@kristofferjohansson3768
@kristofferjohansson3768 3 ай бұрын
God video but you make one huge mistake: you don't set the value for prior. Or more exactly, you don't explain where you do that. So for everyone that got frustrated over an empty current_box.prior the solution is at 26.38, line 110.
@macawave
@macawave Жыл бұрын
14:53
@MaxRohowsky
@MaxRohowsky Жыл бұрын
yes
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 878 М.
Easy pathfinding in python [almost without math]
1:11:12
Clear Code
Рет қаралды 86 М.
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 16 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 1,9 МЛН
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
A Comparison of Pathfinding Algorithms
7:54
John Song
Рет қаралды 719 М.
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,4 МЛН
Modern Python logging
21:32
mCoding
Рет қаралды 196 М.
Visualizing Pathfinding Algorithms
10:03
CodeNoodles
Рет қаралды 156 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
A* Pathfinding (E01: algorithm explanation)
11:39
Sebastian Lague
Рет қаралды 2,1 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 26 МЛН