0

11 13
7 10
XXXXXXXXXXXXX
X JX AX X X
XXXX XXXXBX XX
X X SX X X X
X XXXX XXX XXX
X X X
X XXXXXXXXX XX
X X X X
XXXXXX XXXX XX
XL X
XXXXXXXDXXXXX

I would like to create a recursive function to recurse through this input. the X's are the walls and the D is the door, the function should trace through the input and see if the characters can escape from the maze, they are labeled by there initials. Any hints or starts would be greatly appreciated. thanks the numbers at the top are the size of the maze and then the location of the door as well. Note I can't get the input to post right there should be a line of x's on the right side and most of the characters should be able to escape.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by iamthwee
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.