Xref: utzoo comp.sources.wanted:14509 alt.sources.d:1176 rec.games.misc:12842 rec.games.programmer:2694 Path: utzoo!utgpu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!uhccux!bigtuna!pegasus!tleylan From: tleylan@pegasus.com (Tom Leylan) Newsgroups: aus.games,comp.sources.wanted,alt.sources.d,rec.games.misc,rec.games.programmer Subject: Re: Maze generation Keywords: how-to maze generate program wanted Message-ID: <1990Dec15.093542.2725@pegasus.com> Date: 15 Dec 90 09:35:42 GMT References: <1215@syacus.acus.oz> <1990Dec13.190759.9297@craycos.com> Organization: Pegasus, Honolulu Lines: 23 In article <1990Dec13.190759.9297@craycos.com> scott@craycos.com (Scott Bolte) writes: > >> I am interested in software or algorithms for generating mazes .... > > Believe it or not the following C code can generate unique > mazes of arbitrary size. Extract the code and compile it. When > you run it just give a number, after you run it, not on the > command line. > > I do not know where it came from but I have had it for at least > a year. > Scott... it looked so cute that I tried it but no maze. It printed a repeated pattern though. Made me suspect that the RAND() function might be operating differently. I'm using Microsoft C and it returns a random value between 1 and 32767. Does this appear to conflict with anything ? BTW, if I was forced to guess it's origins it "looks" like an entry in the obfuscated code contest that someone holds each year. tom