Page 1 of 1

PostPosted: Fri Sep 27, 2002 10:58 am
by chan
I'm quite new to the Pocket C language, and I'm having some problems with the MakeMaze function. I read in the tutorial that each element of the maze has 8 bits of data. However, the elements of the maze that i generated are either 1 or 0. Is this meant to be correct? Or is there a way to determine the start and end of the maze?
Thanks in advance for any help.:):)

PostPosted: Fri Sep 27, 2002 4:27 pm
by jstadolnik
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
However, the elements of the maze that i generated are either 1 or 0. Is this meant to be correct?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Yes. An 8 bit value can range from 0 to 255. You can use the SetMaze & GetMaze functions to change individual elements to any value between 0 and 255.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Or is there a way to determine the start and end of the maze?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

The algorithms don't have start and end points. It's up to you to pick start and end points after a maze has been generated (e.g. any two edge points).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm