Quote:
With the above done you should now have enough information to generate your random maze. The algorithm for how to do this will be explained in more detail below. Once you’ve generated a random, perfect maze, which matches the user’s specifications, you should display it to the screen. This will require outputting ‘|’ and ‘_’ where vertical and horizontal lines should be. Additionally, before printing the maze to the screen you’re going to want to make sure the Console window’s buffer is large enough to accommodate the desired size maze. You can do this by using methods on the System.Console class.
Ok, at first when I searched I ran into directx information:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_m_Oct_2004/directx/ref/ns/microsoft.directx.directsound/c/buffer/buffer.asp
But then found this:
http://msdn2.microsoft.com/en-us/library/system.console.aspx
Ok, so the buffer is the region that the console window occupies? And what you were saying in that paragraph is that we are going to need to modify the dimensions of the console screen based on how big the maze is going to be right? That this is what the buffer is for?
On this page:
http://msdn2.microsoft.com/en-us/library/system.console_members.aspx
I see buffer width and buffer height properties.
C#
public static int BufferHeight { get; set; }
But I also see under methods SetBufferSize.
C#
public static void SetBufferSize (
int width,
int height
)
Ok, so this is how you'd get a start at using something new. Just like using this buffer with the console is new to me. Look up System.Console in the MSDN. Then I found stuff about the Buffer and went into it looking for things to work with. So those two sets of things I mentioned above are what look like to me to be what I need to play with.
That right so far? Anything I am missing, well besides that there is some code examples on those pages that I am going to look through to see if I can figure out how to use these things. What would you suggest to be better to work with? The properties or the method?
Thanks in advance.
I rate users. Its just not having much impact as my rating is low...