Python Forum
Understanding maze generation code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding maze generation code
#1
So I have been interested in mazes recently(you can even see I made a thread about it earlier, haha) and I was trying to understand this cool software's code:

https://www.dropbox.com/sh/3tl3vmsd8ebxo...=maze51.py

What maze generation algorithm is used here in the generator function?


I can kind of get how the DFS/BFS is implemented, but the parts I can not understand/follow are the A* and Greedy and Djikstra's implementation even after seeing their Wikipedia pages.

So if someone here could break down some of those things and help understand it, it would be great. If you could spare some time we could also talk via PM :) I'm gonna be starting school soon so these would be really helpful for me.
Reply
#2
Way to much code for me to read in a short amount of time, however, this article http://www.geeksforgeeks.org/a-search-algorithm/ gives a pretty complete description of the different algorithms and when to use them.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Code understanding: Need help in understanding dictionary code jt123 0 470 Jul-09-2023, 01:13 PM
Last Post: jt123
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 1,747 May-09-2023, 08:47 AM
Last Post: buran
  Node Flow Generation in Python Linenloid 0 655 Feb-21-2023, 07:09 PM
Last Post: Linenloid
  Allure Report Generation rotemz 0 786 Jan-24-2023, 08:30 PM
Last Post: rotemz
  Why doesnt chunk generation work? LotosProgramer 1 1,946 Apr-02-2022, 08:25 AM
Last Post: deanhystad
  Understanding a piece of code Michael1 4 1,408 Jan-20-2022, 07:14 PM
Last Post: Michael1
  Random data generation sum to 1 by rounding juniorcoder 9 3,422 Oct-20-2021, 03:36 PM
Last Post: deanhystad
Question PDF generation / edit SpongeB0B 2 2,081 Jul-28-2021, 05:59 AM
Last Post: SpongeB0B
  Calling Input for Random Generation ScaledCodingWarrior 1 1,860 Feb-02-2021, 07:27 PM
Last Post: bowlofred
  Beginner: I need help understanding few lines of a code. hop_090 1 1,690 Sep-07-2020, 04:02 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020