You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would just solving the generated maze from a particular run be enough of a check? If the test should ensure that the generator always generates a solvable maze checking a single maze doesn't seem the right approach.
Finding the solution could be implemented as finding a path in a graph, which is implemented at least in ShortestPath solver (Perhaps the others do a similar thing). Right now I know very little about mazes to see how one such solver wouldn't find a path if it exists. Do you have a resource that I can read to understand better the problem?
The generator unit tests are pretty good. But they need one more test feature for each generator type: test if the maze is solvable?
One way to solve this would be to put a start and end point in the corner of the maze and solve it.
This is easy in theory, but not all mazes are solvable using the same solving Algorithm.
The text was updated successfully, but these errors were encountered: