You would probably have to use a large grid with squares, like a large tic-tac-toe board, with a unique number for each square . Also, if you store what the square is, a wall or open space, then you should be able to come up with a formula/decision table to calculate the squares surrounding any given square and so can tell which way the player can and can not move.
Reputation Points: 741
Solved Threads: 694
Nearly a Posting Maven
Offline 2,314 posts
since Dec 2006