Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing start and end points in maze #21

Open
charanpool opened this issue Oct 28, 2019 · 0 comments
Open

Customizing start and end points in maze #21

charanpool opened this issue Oct 28, 2019 · 0 comments

Comments

@charanpool
Copy link

Hi,

The code works assuming that the start coordinate is always painted in white in the top row and end coordinate is always painted in white in the bottom row of the maze.

If we want to customize them, what are the changes needs to be made to specify start and end coordinates?

My Observation:
Assume the start point to be (101, 13)
Inside the mazes.py if we specify the start coordinate at line 19 as

self.start = Maze.Node((13,101)) instead of self.start = Maze.Node((0,x))

then the resultant image consisted of the path that is excluding the position (101, 13).
It is because the Neighbours[] is not configured properly for the assumed start point. It is not a proper way to change manually te Neighbours[] of assumed start node.

How to fix it? Or please suggest some other way to customize the start and end coordinates.

Thanks in advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant