In a nut shell I have to make a program that generates either a random maze or reads a maze from a file. Then I have to have the program find the shortest path from point a to point b and output the path using "+"s
The maze would look something like this:
BBBBBB
BOOOBB
BSBOBB
BOOOOB
BBBBXB
B = barrier
O= open path
X = exit
S = start
I don't even know how to start. The best I did was come up with a menu in the main method -_- I know I'll need a procedure to read a maze from a file but how do I randomize it? Can everyone just spit out ideas for an algorithm please?
*edit: essentially it's the same purpose as this: http://courses.engr....96/mp3/mp3.html
Only like a totally different comp language
Edited by Kuro, 06 April 2011 - 02:25 PM.