I have a 2 dimensional array. Im trying to use it to generate a maze via some algorithms. Its pretty much way over my head though.
But thats beside the point. If i need each array coordinate to store multiple values (like if south, west, north, east has walls), what would be a clever way to do so?

For instance:
1, 1 in the array needs to keep track of 4 values at least (as do all other positions).

Should i make it an integer value like "1111" and replace with 0's where the wall is gone? the first 1 being north, second being east e.t.c. Would you choose this option?

If someone wants to do a bit more research, here is some info on mazes:
http://www.mazeworks.com/mazegen/mazetut/index.htm
http://www.astrolog.org/labyrnth/algrithm.htm

I've been stuck here for a few days, because i cant seem to wrap my head around it.
I feel like the code is gonna look pretty horrible once im through with it, unless i get it figured out from the start, and that seems hard.
Has anyone else had any experience doing mazes? Or maybe someone with more experience in programming in general could help me flesh it out.

Its not for a school project e.t.c. and all that. Just for fun. I'll gladly post the code here when i feel its done so anyone can look at it.

Thank you.