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
  Parquet file generation woliveiras 1 614 Dec-07-2024, 02:52 AM
Last Post: deanhystad
  Code understanding: Need help in understanding dictionary code jt123 0 912 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 3,422 May-09-2023, 08:47 AM
Last Post: buran
  Allure Report Generation rotemz 0 1,377 Jan-24-2023, 08:30 PM
Last Post: rotemz
  Understanding a piece of code Michael1 4 2,316 Jan-20-2022, 07:14 PM
Last Post: Michael1
Question PDF generation / edit SpongeB0B 2 2,802 Jul-28-2021, 05:59 AM
Last Post: SpongeB0B
  Beginner: I need help understanding few lines of a code. hop_090 1 2,203 Sep-07-2020, 04:02 PM
Last Post: Larz60+
  problem about maze path finder Simurg 2 2,667 Aug-16-2020, 01:10 PM
Last Post: Simurg
  Extracting Rows From Data Frame and Understanding The Code JoeDainton123 0 1,883 Aug-03-2020, 04:08 PM
Last Post: JoeDainton123
  Help Understanding Code Variables 1 2,442 May-02-2019, 05:53 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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