To get ready for my upcoming interview I wrote a maze game that lets you specify the size of the maze and how many dimensions it has. it's a pretty quick job, and not pretty, but feel free to try it. it doesn't do a lot of error checking yet, but I've enjoyed it so far.
Don't go over 16 dimensions, it won't work. It'll also hurt to think about.