Path: utzoo!attcan!uunet!snorkelwacker!bionet!agate!linus!philabs!ttidca!hollombe From: hollombe@ttidca.TTI.COM (The Polymath) Newsgroups: alt.hackers Subject: Re: Great[sic] Christmas Worm Message-ID: <19821@ttidca.TTI.COM> Date: 14 Sep 90 23:41:25 GMT References: <9009122126.aa05627@mvax.cc.ic.ac.uk> <1411@cs.nps.navy.mil> <1990Sep13.145046.7262@Matrix.COM> Organization: The Cat Factory Lines: 27 Approved: Yes In article okunewck@psuvax1.cs.psu.edu (Phil OKunewick) writes: }... Better }yet, use an active generator to continuously remap a maze when somebody }is lost in it. ... I did one of these. It's easier than you think. (Must be. I did it in GWBASIC on a PC in about half an hour from a standing start). I borrowed a trick from an old "Scientific American" article on tiling. There's a kind of tile that has, effectively, two possible orientations, 90 degrees out of phase with each other. My program randomly covers the screen with them, then goes through and randomly rotates them. Result: An ever-changing maze. I'd draw a sample tile, but it's impossible to get the proportions right in ASCII. Picture a square with two parallel diagonal lines across it. Each line goes from the center of a side to the center of an adjacent side. (For a fancier effect, substitute 90 degree arcs for the lines). When you lay two side by side their lines will either meet or lie parallel. Do that with a lot of them in random orientations and you get a maze. -- The Polymath (aka: Jerry Hollombe, M.A., CDP, aka: hollombe@ttidca.tti.com) Head Robot Wrangler at Citicorp(+)TTI Illegitimis non 3100 Ocean Park Blvd. (213) 450-9111, x2483 Carborundum Santa Monica, CA 90405 {csun | philabs | psivax}!ttidca!hollombe