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, the Adventure Begins
  4. DrawBots for the slow learner
  5. DrawBot - Parts Ordered!!!
  6. DrawBot - The Breakdown
  7. DrawBot - Parts Shipped!!!
  8. DrawBot - What would you draw?
  9. DrawBot - The Plan!
  10. DrawBot - The Hacks
  11. DrawBot - Giant Unicorn?
  12. DrawBot - The Delivery?
  13. DrawBot - The Delivery, Part II
  14. DrawBot – The Delivery, Part III
  15. DrawBot – The Assembly, Part I
  16. DrawBot – The Software, Part I (and an existential conversation)
  17. DrawBot – The Delivery, Part IV
  18. DrawBot – The Assembly, Part II
  19. DrawBot – The Assembly, Part III
  20. DrawBot – The Face Palm
  21. i find i want to add more posts in some random series, just so i can use my new plugin
  22. Simple Series WordPress Plugin
  23. This is a test of the Simple Series post system... This is only a test
  24. Now Simple Series will also add the series list to RSS feeds too!
  25. ZOMG! Simple Series is going viral!
  26. DrawBot – The Operation, Part I
  27. DrawBot – The Assembly, Part VIII
  28. DrawBot – Printing!
  29. DrawBot – Printing, Part II
  30. DrawBot – Why are you crying?
  31. DrawBot – Calibration
  32. DrawBot – Pen Selection
  33. DrawBot – Drawing Success(ish)!!!
  34. DrawBot – Onwards and Upwards!
  35. WordPress plugin - OCD Plugin Stats
  36. Restarting a Stalled DrawBot Drawing
  37. TSP FTW!
  38. Two new DrawBot links! And an update!
  39. The biggest inkjet printer ever
  40. Maze Code + Polargraph?
  41. DrawBot Aesthetic Re-Design Ideas
  42. Every Body Needs a Skull
  43. I think I know what I want to draw next...
  44. This project is not going to overengineer itself
  45. Overengineered Spools
  46. Overengineered Stepper Motor Mounts, Filament Guides
  47. Arduino Powered Drawing Robot Poll
  48. Building an Arduino Drawing Robot - On The Cheap
  49. DrawBot, now ACTUALLY wall mounted!
  50. How to add a custom button to the WordPress Visual TinyMCE Editor
  51. A Study of Drawing Robot Pen Holders and Design Considerations

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=""> <strike> <strong>