Maze Program

I am trying to write a program which solves how to get out of A multi dimensional (char) array. Where the "walls" are the letter "X". I want to use a stack for the path (a pair of ints). I have no idea how to start this. I know the start coordinates will be "O" and i want to check N, E, S, W directions to see if any of them are open but im not sure how to write this function. Ive taken a look online but im finding more user solving puzzles per say. The ones that i have found were difficult for me to understand.

So my question is basically how do i write a function which can search all 4 directions (multiple arrays) after moving.
Last edited on
Topic archived. No new replies allowed.