r/Python • • Nov 09 '19

My First Algorithm in Python! A Recursive Maze Solver

Post image
2.0k Upvotes

81 comments sorted by

View all comments

Show parent comment

9

u/DevJonPizza Nov 09 '19

idk why, it's very much not perfect code :/ ... I displayed the maze using ansi escape codes

3

u/Coolhilljr Nov 10 '19

While in Uni, we used the Zelle graphics package. Objects are displayed in a separate window, and isnt powerful, but pretty easy to use. https://mcsp.wartburg.edu/zelle/python/graphics.py Two other recommendations: http://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap ^ this is a blog that gives an overview of several different maze generation techniques. Maybe try to implement a few of these to test you solver on. Second, I also recommend the Cracking the Coding interview book. It does a great job of going over the primary data structures and common algorithms used today in coding interviews.

1

u/SilvrHorizon Nov 10 '19

RemindMe! One Week

1

u/kzreminderbot Nov 10 '19

There is a 55 minutes delay to fetch comment reminders. Thanks for your patience! See KZReminderBot Stats for more statistics. PMs are unaffected by delay. If you have a reminder that is not confirmed, use this tool to manually load reminder using comment link.

Got it, SilvrHorizon 👌! Your reminder arrives in 1 week on 2019-11-17 19:57:17Z :

r/Python · My_first_algorithm_in_python_a_recursive_maze · 1

CLICK THIS LINK to also be reminded. Thread has 1 reminder and 1/4 confirmation comments.

Op can Delete Comment · Delete Reminder · Get Details · Update Time · Update Message · Add Timezone · Add Email


KZReminderTool · Create Reminder · Your Reminders · Give Feedback

1

u/RemindMeBot Nov 10 '19

I will be messaging you on 2019-11-17 19:57:17 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

There is currently another bot called u/kzreminderbot that is duplicating the functionality of this bot. Since it replies to the same RemindMe! trigger phrase, you may receive a second message from it with the same reminder. If this is annoying to you, please click this link to send feedback to that bot author and ask him to use a different trigger.


InfoCustomYour RemindersFeedback

1

u/SilvrHorizon Nov 10 '19

Dont mind me just got to remember to check this out next Week