-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot solve mazes with wrap x or wrap xy, wrap y works fine #5
Comments
This is because of how the default entrance and exit are determined by theseus. When wrapping in x (or xy), theseus's default algorithm for finding those points doesn't work, so the solver gets stuck trying to find a path between two points that aren't actually connected to the maze. While theseus should definitely handle this case more gracefully, you can work around it in the meantime by telling it exactly where you want solution to start and stop, e.g.:
The |
Maybe theseus should just refuse to create a default entrance and exit if wrapping is enabled. There is still something going on with the astar algorithm. This command sometimes hangs and sometimes runs to completion:
The backtracker algorithm always seems to work if an entrance and exit are provided. |
Yeah. To be honest, I don't really have a lot of time to maintain this program. It needs to be rewritten (the existing architecture makes some dubious choices) and tested (the existing tests don't really cover much). It's not much better than a proof-of-concept at the moment, though it can do some fun things if you're willing to work around the quirks. :/ |
Theseus can solve mazes with no wrapping or with wrap y but it hangs when trying to solve mazes with wrap x or wrap xy. The astar solver cannot solve with wrap y.
The text was updated successfully, but these errors were encountered: