C++/maze in c++
Expert: Eddie - 12/20/2005
QuestionHello, Dear professor:
I'm really sorry to bother you again.I just want to know your algorithm works for any mazes. if you can't answer all of my questions and my question is very long, I can ask you in several times.but, if no trouble, please answer me immediate.
my question: a definition for maze, an algorithm that works for any mazes and then the data structure to save and solve it and the program in c++.
if you can't answer me please guide me how I found this information.
Yours truly,
Masumeh.
AnswerHello again Masumeh, thank you for the question.
There is no real way to be able to solve every single maze you could possibly be presented with ever. The algorithm I gave you was the generic way of doing it. You have to test your collision with the different walls differently, for example. Let's say your maze is ASCII. You are going to be testing collision against chars. What if your maze is a bitmap? You would have walls defined by emumerations and such. Barring that, the recursive algorithm I gave you should work for any maze.
I hope this information was helpful.
- Eddie