Find the path to the exit (C code)
Hello to all....!
The problem is ... i am trying to solve the below problem...
####$#
#-##--
#---#-
#-#-#-
##^---
##-##-
'#': wall , '-': free path , '$':the exit , '^': the man
Well...i have to program the man to find the exit from the 2D maze.....but the alogorithm must not use recursion.....
Any ideas.. ?? I do not know Graph theory...and stuff like Link-lists...stucks or queues.....I need to solve this just with arrays and no recursion.
The Output:
####$#
#-## | |
#---# |
#-#-# |
##^| | |
##-##-
"|" : the steps to the exit.
Please help...Thanks in advance !!
|