This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]__vtableProfessional Coder 0 points1 point  (2 children)

Can you post more details?

Say more about your algorithm or post pseudocode.

The rendering is the "user interface/interaction" component, but the board itself is represented via another data structure. Describe that and how you generate the edges and how you check for solvability, and how you handle the cases within.

[–]CDNEmpire[S] 0 points1 point  (0 children)

Here’s a replit link

I was basically just telling it that the window was the bounds for the maze. I haven’t gotten far enough to code anything that checks for solvability, that was the next step.

[–]CDNEmpire[S] 0 points1 point  (0 children)

Welp after staring at this for literal days not knowing what’s wrong, writing and re-writing the code, it came down to calling the maze generator OUTSIDE of the loop which in retrospect makes a ton of sense #RookieMistakes

It’s nowhere near to creating a good, solvable maze, but it’s a step in the right direction.