Maze Code + Polargraph?


My RSS feed for Slashdot brought my attention to an article on Slate.  The Slashdot summary stated:

This Slate article talks about a single line of code — 10 PRINT CHR$ (205.5 + RND (1)); : GOTO 10 — and how it manages to create a complicated maze without the use of a loop, variables and without very complicated syntax.

Even though that “one line” of code really is two lines and it really does use a loop, that short string of code is still very interesting.  While the way the code generates a maze isn’t immediately intuitive, it becomes obvious once you watch a bit of the video above.  All that code does is randomly kick out a forward slash or backward slash.  Once they wrap around to the next line, they start to form what looks like a maze.

As a little exercise I created something similar using PHP.  To make that work I had to use a fair bit of CSS to make it look decent.  In any case, it occurred to me that this would be a wonderful project for a Polargraph! Draw a random forward slash or backslash, get to the end of the line and make a bunch more on the return line.  How awesome would a huge paper roll of nothing but a giant maze look?

I think I may have found a project cool enough to show off at Maker Faire.  :)

”Posts
  1. Wanna make a DrawBot?
  2. DrawBot Resources and Links
  3. DrawBot - Parts Ordered!!!
  4. DrawBot - What would you draw?
  5. DrawBot - The Hacks
  6. DrawBot - Giant Unicorn?
  7. DrawBot – The Assembly, Part III
  8. DrawBot – Design Considerations
  9. DrawBot – Halp!!! No - seriously, a little help?
  10. DrawBot – The Face Palm
  11. This is a test of the Simple Series post system... This is only a test
  12. Now Simple Series will also add the series list to RSS feeds too!
  13. ZOMG! Simple Series is going viral!
  14. DrawBot – The Silver Lining of Failure
  15. DrawBot – The Delivery, Part VI
  16. DrawBot – The Assembly, Part V
  17. Anti-Virals
  18. Simple Series - Half-Life; Market Research
  19. DrawBot – The Assembly, Part VI
  20. DrawBot – Printed Parts
  21. DrawBot – The Assembly, Part VII
  22. DrawBot – The Operation, Part I
  23. DrawBot – The Breakdown, Part II
  24. DrawBot – Printing!
  25. DrawBot – Printing, Part II
  26. WordPress Plugin: Easy CC License
  27. WordPress plugin - OCD Plugin Stats
  28. Two new DrawBot links! And an update!
  29. Excellent DrawBot Slides
  30. Maze Code + Polargraph?
  31. Ideas for improving my DrawBot
  32. DrawBot Aesthetic Re-Design Ideas
  33. Every Body Needs a Skull
  34. I think I know what I want to draw next...
  35. This project is not going to overengineer itself
  36. Overengineered Stepper Motor Mounts, Filament Guides
  37. Building an Arduino Drawing Robot - On The Cheap
  38. How to add a custom button to the WordPress Visual TinyMCE Editor
  39. A Study of Drawing Robot Pen Holders and Design Considerations
  40. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments

One Response to “Maze Code + Polargraph?”

  1. Tony Buser says:

    That’s two lines of code, a loop, and not a maze. :head explode: :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>