1. mazes
- Posted by Michael Packard <lgp at EXO.COM> May 29, 1997
- 825 views
I need something that will generate ascii text mazes Michael Packard Lord Generic Productions lgp at exo.com http://exo.com/~lgp A Crash Course in Game Design and Production http://exo.com/~lgp/euphoria
2. Re: mazes
- Posted by Ralf Nieuwenhuijsen <nieuwen at POP.XS4ALL.NL> May 29, 1997
- 853 views
--Message-Boundary-26202 Content-type: text/plain; charset=US-ASCII Content-description: Mail message body > I need something that will generate ascii text mazes Well, i just finished my new MaZeR routinesand with them it is just as easy possible (told you they were flexible!) Just include MaZeR.E and call: mazer ( {width , height } , options) The routine will then return a 2-d sequence of the height and width you have specified + 1. In the sequence a zero(atom) means no line. To convert it to spaces, just do this: my_sequence = maze ({width,height},opt_s) + 32 But then the line_color you have specified will also be 32 more. For ascii-text mazes, just set the line_color to the character you want the line to be!! If you set the space to 2 and the line color to 'x' you'll get something like this: XXXXXXXXXXXXXXXXXXXXXX X X X X X X XXXXXXXXXX XXXXXX X X X X X X X XXXXXX X X XX XXXXXX X X X X X X X XX X XXXX X X X X XXXXXXXXXXXXXXXXXXXXXX This above might look awfull with a fixed-width font, it looks pretty good with mine. Features: * Space between line can be anything from 2 (= excually 1 space) * Any positive value can be used as linecolor/char * The function now returns the maze in about 76% faster!! * Multiple mazer commands can be given, so you can maze different layers with different options (and different line colors, spaces, etc.) * See mazer.txt for more information... You can use them freely, but i would like to get the code of the program you are writting it for!! (Don't need money, too difficult to transfer and stuff, like it would be much!) However it's your choice to give me the code. You can use these routines anyway, that's why i posted them on this mail-serv, instead by private mail. --Message-Boundary-26202 Content-type: text/plain; charset=US-ASCII Content-disposition: inline Content-description: Attachment information. The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: mazer.zip Date: 29 May 1997, 15:40 Size: 9864 bytes. Type: ZIP-archive --Message-Boundary-26202 Content-type: Application/ZIP; name=mazer.zip