Re: [CODE]Random 'maze'?

From: Daniel Koepke (dkoepke@california.com)
Date: 01/05/97


On Sun, 5 Jan 1997, The Dark One wrote:

> I've been thinking about this one for a long long time...
> 
> Ever play Nethack or Moria?
> 
> Making a nice fluid dungion like that on the fly is really really
> difficult.
> 
> I have no idea where to even begin.
> 
> Yea sure I can make randomze zones with random exits, but just try
> to make it coherant :)

Well, okay, create a 2D array (maze_rooms[10][10] for 10x10), and go
through each one and randomly set rooms into the array.  No two rooms
can be in the same array, and east/west/north/south are always set
as exits to the room beside it in that direction.  Implementing up
and down might be something completely different, though.  Still, it
could be accomplished.

Actually, my original suggestion made a pretty coherent maze.  But
I'm not a big follower of maze algorithms (that's how you spell it,
BTW).


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST