I've played around with this code a bit, (it is screwy), it was doing all sorts of wierd stuff. it was creating a maze ok in the x axis, but twice the size it should have been in the y axis, after changing MazeX and Y to consts, rather than ints it sort of fixed the problem.
i.e
const MazeX=10;
const MazeY=10;
Does anyone else have code that "works" it seems the maze is built on an array or chars.... eg? why not ints? or somthing else?
maybe having a byte telling cell information, like bit 1, north, bit 2, east etc
so 00001010 would mean west and east exits etc.... the other spare bits can be used for defining "frontier" blocks etc.. while creationg the maze.
-B